Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
new emacs tuareg mode release
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-05-26 (14:03)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] new emacs tuareg mode release
On Wed, 26 May 2010 15:33:13 +0200, Mehdi Dogguy wrote:
>   * in tuareg-mode 2.0, "let" and "open" statements (and some others) are
>     bold and blue. I found that change quite surprising. It keeps my eyes
>     clipped on them. They contrast too much with the other colors used.

That is one thing I like with tuareg: you can change the colors
without affecting other modes.  For your "problem", I have in
'tuareg-load-hook the following:

    (face-spec-set 'tuareg-font-lock-governing-face
     '((((class color) (type tty)) (:bold t))
       (((class color) (background light)) (:foreground "black" :bold t))
       (((class color) (background dark))
    	(:foreground "wheat" :bold t))))

>   * in tuareg-mode 2.0, in mll files, rules are now harder to read because
>     it uses mainly red (for symbols, let's say) and light brown for strings
>     (as usual) and the contrast between these two colors is too low. It
>     used to be dark purple and light brown which is (not perfect, but at
>     least)a better default setting, IMHO.

I do not like operators to stand out that much, so I use:

     '((((class color) (type tty)) (:foreground "white"))
       (((class color) (background light)) (:foreground "DimGray"))
       (((class color) (background dark)) (:foreground "Tan")))

You can play with colors that suit you too!

Another difference with indentation is that, e.g. "let", is electric
(it indents the line) and M-q reindent the entire expression (which
can really be handy).