diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/README | 10 | ||||
-rw-r--r-- | emacs/caml-font.el | 7 |
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)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |