In doc/, use add-hook rather than setq for hooks

* doc/lispintro/emacs-lisp-intro.texi (X11 Colors):
* doc/misc/efaq-w32.texi (Bash): Don't use setq with hooks.
This commit is contained in:
Glenn Morris 2014-02-24 22:11:11 -05:00
parent 1fe40e0499
commit a038bd8769
4 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2014-02-25 Glenn Morris <rgm@gnu.org>
* emacs-lisp-intro.texi (X11 Colors): Don't use setq with hooks.
2014-02-06 Glenn Morris <rgm@gnu.org>
* emacs-lisp-intro.texi (Recursive Patterns):

View file

@ -17755,7 +17755,7 @@ file that set values:
@group
;; Set calendar highlighting colors
(setq calendar-load-hook
(add-hook 'calendar-load-hook
(lambda ()
(set-face-foreground 'diary-face "skyblue")
(set-face-background 'holiday-face "slate blue")

View file

@ -1,3 +1,7 @@
2014-02-25 Glenn Morris <rgm@gnu.org>
* efaq-w32.texi (Bash): Don't use setq with hooks.
2014-02-24 Paul Eggert <eggert@cs.ucla.edu>
* texinfo.tex: Update from gnulib.

View file

@ -1464,7 +1464,7 @@ default shell in Emacs, you can place the following in your init file:
(setq comint-eol-on-send t)
(setq w32-quote-process-args ?\")
(setq shell-mode-hook 'my-shell-setup)
(add-hook 'shell-mode-hook 'my-shell-setup)
@end example
If you find that you are having trouble with Emacs tracking drive