The following message is a courtesy copy of an article
that has been posted to comp.emacs,comp.emacs.xemacs as well.
>>>> "Jon" == Jon Drukman
<jsd(a)hudsucker.gamespot.com> writes:
Jon> (setq text-mode-hook '(lambda () (auto-fill-mode 1)))
Jon> what is lambda going to mean to someone who just wants to get their
Jon> buffers auto-filled?
How about
M-x describe-function RET lambda RET
or
M-x info-query RET lispref RET m lambda expressions RET
Jon> far worse: what about something like this?
Jon> (custom-set-faces
Jon> '(font-lock-string-face ((t (:foreground "blue3"))) t)
Jon> '(font-lock-doc-string-face ((t (:foreground "blue3"))) t)
Jon> '(font-lock-variable-name-face ((t nil)) t)
Jon> '(font-lock-keyword-face ((t (:foreground "brown"))) t)
Jon> '(font-lock-type-face ((t (:foreground "brown"))) t)
Jon> '(font-lock-other-type-face ((t (:foreground "brown"))) t)
Jon> '(font-lock-comment-face ((t (:foreground "red"))) t))
The forms
(custom-set-faces ...)
and
(custom-set-variables ...) are not meant to be editted by hand.
They are udated via
Options -> Customize -> ...
When you click the Save button for any customized variable or faces.
Perhaps a leading comment should written before these forms pointing
this out to a user stumbling into these lisp forms.
Regards,
Adrian
Jon> how the heck is anyone supposed to be able to read that, let alone
Jon> REMEMBER it when asked how to change the colors?
Jon> i don't have any answers, but i do believe you are underestimating
Jon> the amount of work required to customize some common, trivial items.
Jon> i've been using emacs for years so i have absorbed a baseline amount
Jon> of elisp knowledge just through osmosis. pity the new user who just
Jon> wants to get some work done!
Jon> at this point i have given up on customizing emacs to do precisely what
Jon> i want. i just keep reading the newsgroups in the hope that someone
Jon> will post a snippet of elisp that i can steal and mangle enough to
Jon> work for me. :) so far i've been lucky...
--
Adrian Aichner
Applications Engineer
Teradyne GmbH
Semiconductor Test Group Telephone +49/89/41861(0)-208
Dingolfinger Straße 2 Fax +49/89/41861-217
D-81673 MÜNCHEN E-mail aichner(a)ecf.teradyne.com