Berkeley CSUA MOTD:Entry 15083
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

1998/12/6 [Computer/SW/Editors/Emacs] UID:15083 Activity:nil
12/5    Does anyone know how to get color coding on C/C++ on emacs.  I
        tried copying all the /usr/sww/share/emacs/2.02/list/cc* to
        my home computer from the instructional machines but it doesn't
        seem to do the trick.  Any suggestions?
************************************************
(setq text-mode-hook (quote turn-on-auto-fill))
(setq find-file-hook (quote turn-on-auto-fill))

(load "hilit19")

      (hilit-translate classes 'RosyBrown)
      (hilit-translate stk-keyword 'MediumVioletRed-underline)
      (hilit-translate defun 'red)
      (hilit-translate list-procs 'Chartreuse)
      (hilit-translate mutator 'red)
      (hilit-translate conversion 'orange)
      (hilit-translate define 'skyblue)
      (hilit-translate comment 'yellow-italic)
      (hilit-translate string 'thistle)
      (hilit-translate type 'orange)
      (hilit-translate keyword 'ForestGreen)
      (hilit-translate include 'green)
      (hilit-translate function-name 'purple)
      (hilit-translate decl 'purple)
      (hilit-translate args-list 'orange)
      (hilit-translate label 'red-underline)
      (hilit-translate caps 'blue4)

  (set-foreground-color "white")
  (set-background-color "black")
  (set-cursor-color "green")
********************************* Next time, put an e-mail address -allenp