You are not logged in.
When editing configuration files such as .procmailrc, .fetchmailrc, Emacs won't automatically highlight syntax for me.
I can enable syntax highlighting in Vim by appending "syntax on" to the .vimrc.
I tried adding "global-font-lock-mode t" in the .emacs file, but it didn't solve my problem.
What is the solution?
Offline
i dont use emacs, but this looks like that you want:
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub
Offline
i dont use emacs, but this looks like that you want:
(global-font-lock-mode t) (setq font-lock-maximum-decoration t)
No, that doesn't solve my problem.
Offline
Some of my config file have this (using conf-unix-mode)
# this is .somerc
# -*- conf-unix -*-
...
Or using this in your .emacs
(add-to-list 'auto-mode-alist '("\\.*rc$" . conf-unix-mode))
Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.
Offline
Some of my config file have this (using conf-unix-mode)
# this is .somerc # -*- conf-unix -*- ...
Or using this in your .emacs
(add-to-list 'auto-mode-alist '("\\.*rc$" . conf-unix-mode))
I followed your advice, and it does have some syntax highlighting, but less than Vim does.
For example, Vim will highlight all the names of colors in the .muttrc file, but Emacs doesn't.
I guess Emacs is not as strong as Vim when it comes to editing configuration files.
Last edited by yu3k (2011-09-14 10:06:47)
Offline
Because vim has its own syntax coloring style for muttrc (you can see it in /usr/share/vim/vim73/syntax) while emacs doesn't.
And yes, syntax highlighting in vim is more colorful than emacs.
Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.
Offline
Hi igndenok,
you are right, thank you.
Offline