From: W Dan Meyer <specuu@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how is emacs lisp syntax colored in emacs-lisp-mode?
Date: Tue, 10 Mar 2009 22:01:55 +0000 [thread overview]
Message-ID: <87hc2111gs.fsf@gmail.com> (raw)
In-Reply-To: 2eeaef93-78b5-4dcb-b7fe-9abb03b04424@f1g2000prb.googlegroups.com
Xah Lee <xahlee@gmail.com> writes:
> Xah Lee <xah...@gmail.com> wrote:
>> 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.
>
> On Mar 10, 6:43 am, Tassilo Horn <tass...@member.fsf.org> wrote:
>> Function names like the ones you listed aren't colored in function calls
>> unless they're one of the special forms you mentioned before.
>
> I see. Thanks.
>
>> > is there a principle of how the keywords are colored?
>>
>> Yes, see the elisp manual:
>>
>> ,----[ (info "(elisp)Levels of Font Lock") ]
>> | Many major modes offer three different levels of fontification...
>> ...
>
> does emacs-lisp-mode support more than level 1?
>
> i have my emacs set to level 2. I tried customize-group on emacs-lisp-
> mode but that doesn't seem available. I tried to set font-lock-maximum-
> decoration to 3 but that doesn't seems to have effect.
Yes, because font-lock-maximum-decoration is usually set (as for my CVS
Emacs) to t, which indicate the highest possible level.
W Dan
>
> Xah
> ∑ http://xahlee.org/
>
> ☄
next prev parent reply other threads:[~2009-03-10 22:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hc2111gs.fsf@gmail.com \
--to=specuu@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.