caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be>
To: mehdi.dogguy@pps.jussieu.fr
Cc: thomas.hutchinson@sophia.inria.fr, tuareg-mode@googlegroups.com,
	sds@gnu.org, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] new emacs tuareg mode release
Date: Wed, 26 May 2010 16:01:44 +0200 (CEST)	[thread overview]
Message-ID: <20100526.160144.706657653356968162.Christophe.Troestler+ocaml@umons.ac.be> (raw)
In-Reply-To: <4BFD2319.7000702@pps.jussieu.fr>

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:

    (face-spec-set
     'tuareg-font-lock-operator-face
     '((((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).

Best,
C.


  reply	other threads:[~2010-05-26 14:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-24 16:36 Sam Steingold
2010-05-24 16:55 ` [Caml-list] " Stéphane Glondu
2010-05-24 17:17   ` Sam Steingold
2010-05-24 18:41 ` Philip
2010-05-24 20:09   ` Sam Steingold
2010-05-24 20:36     ` Philip
2010-05-24 20:58       ` Sam Steingold
2010-05-25  1:00         ` Eliot Handelman
2010-05-25 10:17           ` Jan Rehders
2010-05-25 18:04           ` Sam Steingold
2010-05-26  6:27             ` Stéphane Glondu
2010-05-26 13:33               ` Sam Steingold
2010-05-26 14:31             ` New emacs tuareg mode Christophe TROESTLER
2010-05-26 15:36               ` [Caml-list] " Daniel Bünzli
2010-05-26 16:01                 ` Christophe TROESTLER
2010-05-26 16:34                   ` Stefano Zacchiroli
2010-05-27  9:46               ` David Baelde
2010-05-27 14:25                 ` Eray Ozkural
2010-05-27 15:41                   ` Grant Rettke
2010-05-27 16:01                 ` Edgar Friendly
2010-05-29 13:16                   ` David Baelde
2010-05-24 20:34 ` [Caml-list] new emacs tuareg mode release blue storm
2010-05-26 10:02   ` Tom Hutchinson
2010-05-26 13:18     ` Eliot Handelman
2010-05-26 13:32       ` Jacques Garrigue
2010-05-26 13:33     ` Mehdi Dogguy
2010-05-26 14:01       ` Christophe TROESTLER [this message]
2010-05-26 14:09         ` Mehdi Dogguy
2010-05-24 21:44 ` Sam Steingold
2010-05-25 18:08   ` [Caml-list] " Mehdi Dogguy
2010-05-25 18:25     ` Christophe TROESTLER
2010-05-24 21:50 ` Sam Steingold
2010-05-26 22:53 ` Sam Steingold
2010-06-11 12:22 ` [Caml-list] " Albert Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100526.160144.706657653356968162.Christophe.Troestler+ocaml@umons.ac.be \
    --to=christophe.troestler+ocaml@umh.ac.be \
    --cc=caml-list@yquem.inria.fr \
    --cc=mehdi.dogguy@pps.jussieu.fr \
    --cc=sds@gnu.org \
    --cc=thomas.hutchinson@sophia.inria.fr \
    --cc=tuareg-mode@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).