all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how is emacs lisp syntax colored in emacs-lisp-mode?
@ 2009-03-10 12:45 Xah Lee
  2009-03-10 13:43 ` Tassilo Horn
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Xah Lee @ 2009-03-10 12:45 UTC (permalink / raw)
  To: help-gnu-emacs

when coding elisp, lately i find myself using camelCase style for my
own function and variable names. Because i find that easier to
distinguish from built-in function/var/keywords.

on thinking about this, i thought it would not be necessary if emacs-
lisp-mode would just color all built in functions and variables.
However, the way it is syntax colored seems strange, unlike in most
major modes for langs where each class of keywords gets one color.

for example, these keywords would be colored purple by default:

 defun, lambda, while, if, progn, save-restriction, ...

while the following built-in keywords are uncolored (black):
narrow-to-region, mapc, goto-char, point-min, search-forward, car,
nil, replace-match ... etc.

is there a principle of how the keywords are colored?

thanks

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-03-17  9:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 12:45 how is emacs lisp syntax colored in emacs-lisp-mode? Xah Lee
2009-03-10 13:43 ` Tassilo Horn
2009-03-10 20:59   ` Xah Lee
2009-03-10 22:01     ` W Dan Meyer
2009-03-10 20:06 ` Nikolaj Schumacher
2009-03-11 17:51   ` Johan Bockgård
     [not found] ` <mailman.2878.1237105097.31690.help-gnu-emacs@gnu.org>
2009-03-16 23:54   ` Xah Lee
2009-03-17  2:41     ` Xah Lee
2009-03-17  8:41     ` Nikolaj Schumacher
     [not found]     ` <mailman.3385.1237279326.31690.help-gnu-emacs@gnu.org>
2009-03-17  9:53       ` Xah Lee

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.