summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2012-01-18 08:31:11 +0000
committerAlain Frisch <alain@frisch.fr>2012-01-18 08:31:11 +0000
commitc45bcb892d78f3182acb2805aef7ec6e23cce42a (patch)
treeb92b5d6becb9e67a198bc2e070d748eeef62bc3d /emacs
parentcdbb84ec682704379bac21a633cbd2b9e93b35a8 (diff)
parent869feeb00704e0640c45ffe6aee6cc13e4077f79 (diff)
downloadocaml-unused_declarations.tar.gz
Synchronize with trunk.unused_declarations
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/unused_declarations@12034 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'emacs')
-rw-r--r--emacs/README10
-rw-r--r--emacs/caml-font.el7
2 files changed, 10 insertions, 7 deletions
diff --git a/emacs/README b/emacs/README
index 708909b635..ea82a9fd47 100644
--- a/emacs/README
+++ b/emacs/README
@@ -1,4 +1,4 @@
- O'Caml emacs mode, snapshot of $Date$
+ OCaml emacs mode, snapshot of $Date$
The files in this archive define a caml-mode for emacs, for editing
OCaml and Objective Label programs, as well as an
@@ -13,12 +13,14 @@ Xavier Leroy, extended with indentation by Ian Zimmerman. For details
see README.itz, which is the README from Ian Zimmerman's package.
To use it, just put the .el files in your emacs load path, and add the
-following three lines in your .emacs.
+following lines in your .emacs.
(add-to-list 'auto-mode-alist '("\\.ml[iylp]?$" . caml-mode))
- (autoload 'caml-mode "caml" "Major mode for editing Caml code." t)
- (autoload 'run-caml "inf-caml" "Run an inferior Caml process." t)
+ (autoload 'caml-mode "caml" "Major mode for editing OCaml code." t)
+ (autoload 'run-caml "inf-caml" "Run an inferior OCaml process." t)
(autoload 'camldebug "camldebug" "Run ocamldebug on program." t)
+ (add-to-list 'interpreter-mode-alist '("ocamlrun" . caml-mode))
+ (add-to-list 'interpreter-mode-alist '("ocaml" . caml-mode))
or put the .el files in, eg. "/usr/share/emacs/site-lisp/caml-mode/"
and add the following line in addtion to the four lines above:
diff --git a/emacs/caml-font.el b/emacs/caml-font.el
index 425c07622d..d0eeb5c831 100644
--- a/emacs/caml-font.el
+++ b/emacs/caml-font.el
@@ -338,9 +338,10 @@
(modify-syntax-entry ?' "w" tbl)
(modify-syntax-entry ?_ "w" tbl)
(modify-syntax-entry ?\" "." tbl)
- (modify-syntax-entry '(?\300 . ?\326) "w" tbl)
- (modify-syntax-entry '(?\330 . ?\366) "w" tbl)
- (modify-syntax-entry '(?\370 . ?\377) "w" tbl)
+ (let ((i 192))
+ (while (< i 256)
+ (or (= i 215) (= i 247) (modify-syntax-entry i "w" tbl))
+ (setq i (1+ i))))
tbl))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;