Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

emacs? | 52 comments | Create New Account
Click here to return to the 'emacs?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Authored by: atl on Apr 09, '02 03:13:45AM

so, with this hint, are you sure you can get emacs to do syntax coloring? I had researched this a bit about a year ago, and came away with the impression that it couldn't be done outside of an X display. I would love to be shown to be wrong!

[ Reply to This | # ]
Authored by: acrollet on Apr 09, '02 10:03:33AM

I'm more of a vi kind of guy, but when I logged into a linux box from terminal and ran emacs, I had the proper text colors...

[ Reply to This | # ]
not emacs but xemacs
Authored by: witkamp on Apr 13, '02 12:04:51PM

emacs does not have color syntax in a terminal but xemacs does.
you can get xemacs source and compile it with out a problem. and you will have syntax coloring in terminal mode

[ Reply to This | # ]
Sure emacs can! [was: not emacs but xemacs]
Authored by: on Oct 13, '02 07:54:17AM
This is not true! As of emacs 21 there *are* color support in the terminal! (you just have to know how to enable it...) Put this in your .emacs file ; font-lock, decorate with colours ; Use font-lock in all modes (global-font-lock-mode t) ; And use it with all the whistles (setq font-lock-maximum-decoration t) (set-background-color "Black") (set-foreground-color "White") (set-cursor-color "DarkRed") (custom-set-faces '(font-lock-comment-face ((((class color) (background dark)) (:foreground "Cyan")))) '(font-lock-reference-face ((((class color) (background dark)) (:bold t :foreground "Orange")))) '(font-lock-string-face ((((class color) (background dark)) (:bold t :foreground "Grey")))) '(font-lock-keyword-face ((((class color) (background dark)) (:bold t :foreground "Yellow")))) '(font-lock-warning-face ((((class color) (background dark)) (:bold t :foreground "Red")))) '(font-lock-type-face ((((class color) (background dark)) (:bold t :foreground "Green")))) '(font-lock-variable-name-face ((((class color) (background dark)) (:foreground "Yellow")))) '(font-lock-function-name-face ((((class color) (background dark)) (:bold t :foreground "White"))))) Enjoy!

[ Reply to This | # ]