From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id A6CD5BC57 for ; Wed, 26 May 2010 16:03:13 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosDAD7G/EvBvsFKgWdsb2JhbACSFIwMFQEBFiIiwSmFEwQ X-IronPort-AV: E=Sophos;i="4.53,304,1272837600"; d="scan'208";a="51247259" Received: from unknown (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail3-smtp-sop.national.inria.fr with ESMTP; 26 May 2010 16:03:13 +0200 Received: from poincare.swapping.umh.ac.be (poincare.swapping.umh.ac.be [10.102.100.92]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id o4QDxYZ71089622; Wed, 26 May 2010 15:59:52 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.71) (envelope-from ) id 1OHHB2-0003mn-Ug; Wed, 26 May 2010 16:01:45 +0200 Date: Wed, 26 May 2010 16:01:44 +0200 (CEST) Message-Id: <20100526.160144.706657653356968162.Christophe.Troestler+ocaml@umons.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 From: Christophe TROESTLER In-Reply-To: <4BFD2319.7000702@pps.jussieu.fr> References: <4BFD2319.7000702@pps.jussieu.fr> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons Return-Receipt-To: Christophe.Troestler@umons.ac.be Disposition-Notification-To: Christophe.Troestler@umons.ac.be X-Mailer: Mew version 7.0.50 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; emacs:01 tuareg:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 tuareg:01 foreground:01 foreground:01 mll:01 indents:01 m-q:98 imho:01 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.