Version française
Home     About     Download     Resources     Contact us    
Browse thread
no syntax highlighting with emacs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@m...>
Subject: Re: [Caml-list] no syntax highlighting with emacs
From: Colonna Francois <colonna@ccr.jussieu.fr>

> I installed OCaml 3.10.0 
> I also installed emacs .el files by running 
> make install    in the emacs/ directory of ocaml
> 
> I did not get the syntax highlighting 
> 
> Looking at /usr/share/emacs/21.4/site-lisp
> 
> -rw-r--r-- 1 root root  1687 aoû 22 11:56 caml-compat.el
> -rw-r--r-- 1 root root 33119 aoû 22 11:56 camldebug.el
> -rw-r--r-- 1 root root 24580 aoû 22 11:56 camldebug.elc
> -rw-r--r-- 1 root root 72169 aoû 22 11:56 caml.el
> -rw-r--r-- 1 root root 52521 aoû 22 11:56 caml.elc
> -rw-r--r-- 1 root root  1868 aoû 22 11:56 caml-emacs.el
> -rw-r--r-- 1 root root  1768 aoû 22 11:56 caml-emacs.elc
> -rw-r--r-- 1 root root  5365 aoû 22 11:56 caml-font.el
> -rw-r--r-- 1 root root 31185 aoû 22 11:56 caml-help.el
> -rw-r--r-- 1 root root 19396 aoû 22 11:56 caml-help.elc
> -rw-r--r-- 1 root root  2655 aoû 22 11:56 caml-hilit.el
> -rw-r--r-- 1 root root 22844 aoû 22 11:56 caml-types.el
> -rw-r--r-- 1 root root 13557 aoû 22 11:56 caml-types.elc
> -rw-r--r-- 1 root root  2074 aoû 22 11:56 caml-xemacs.el
> -rw-r--r-- 1 root root  1943 aoû 22 11:56 caml-xemacs.elc
> -rw-r--r-- 1 root root 13869 aoû 22 11:56 inf-caml.el
> -rw-r--r-- 1 root root  8967 aoû 22 11:56 inf-caml.elc
> -rw-r--r-- 1 root root   106 mar 24 07:11 subdirs.el
> 
> it seems that caml-hilit.elc is missing.
> Is that the reason why there is no syntax highlighting ?

No, you just have include caml-font (rather than caml-hilit) by hand:
   (if window-system (require 'caml-font))
as explained in the README file in the emacs directory.

Jacques Garrigue