Emacs Coloring for perl/php/html/etc

G

gcawood

Guest
If you are an Emacs user, then it is handy to be able to colorize your scripts correctly. Looking at code that isn't colorized can make your eyes bleed. Here is what I put into my .emacs file for my user. (so, if you are root, create/edit this file /root/.emacs)

Code:
(if (fboundp 'global-font-lock-mode)
    (global-font-lock-mode 1)        ; GNU Emacs
  (setq font-lock-auto-fontify t))   ; XEmacs
 


OP
G

gcawood

Guest
Also, to switch emacs color modes is pretty easy.

Code:
[esc]-x html
[esc]-x php
[esc]-x pl
etc...
 
OP
G

germs

Guest
Nice to see something that can make the code less soul destroying and eye raping, thanks mate, will give it a try.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top