LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Set mode within Emacs, still no syntax highlighting (https://www.linuxquestions.org/questions/linux-software-2/set-mode-within-emacs-still-no-syntax-highlighting-344741/)

rose_bud4201 07-19-2005 03:13 PM

Set mode within Emacs, still no syntax highlighting
 
I can set a mode within emacs (i.e. c-mode, perl-mode), and automatic indenting works. But I can't seem to get syntax highlighting at the same time... Does anyone know if there's anything special I need to set in order to turn that on?

Tinkster 07-19-2005 03:25 PM

m-x font-lock-mode


Cheers,
Tink

rose_bud4201 07-19-2005 04:05 PM

:D Thanks!

Tinkster 07-19-2005 07:07 PM

You could put that into your ~/.emacs file ...
Under

Code:

(custom-set-variables
 '(global-font-lock-mode t nil (font-lock))


Cheers,
Tink

rose_bud4201 07-19-2005 10:20 PM

I had to add an extra ) to the end of the 2nd line, but it works like a charm.
Many thanks!


All times are GMT -5. The time now is 08:36 AM.