help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to make emacs display different functions in differen


From: Tassilo Horn
Subject: Re: Is there a way to make emacs display different functions in different colors?
Date: Thu, 18 Sep 2014 09:23:58 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

"Gian Uberto Lauri" <saint@eng.it> writes:

Hi!

>  > For example, in Monodevelop, when you make a comment in your script like 
> this
>  > 
>  > //This text is only a filler
>  > 
>  > it will turn it green.
>
> Try putting
>
> (global-font-lock-mode t)
> (setq font-lock-maximum-decoration t)
>
> in the .emacs file in your home directory (create a new .emacs file if
> it does not exist).

I don't think he uses an Emacs version that's so old not to have
font-lock enabled by default.  But stock emacs doesn't come with a C#
mode, and it seems he programs in that (because he compares with
Monodevelop).  So he should install csharp-mode [1] which is also
installable using the emacs package manager from either the marmalade or
MELPA repositories.

Bye,
Tassilo

[1] https://code.google.com/p/csharpmode/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]