Obsolete calendar-load-hook in favor of eval-after-load
* lisp/calendar/calendar.el (calendar-load-hook): Make obsolete. (calendar): Doc fix - no longer mention calendar-load-hook. * doc/emacs/cal-xtra.texi (Calendar Customizing): No longer mention calendar-load-hook. * doc/lispintro/emacs-lisp-intro.texi (X11 Colors): Replace calendar-load-hook in example with with-eval-after-load.
This commit is contained in:
parent
c387127fee
commit
041e90962b
3 changed files with 6 additions and 11 deletions
|
@ -17584,11 +17584,10 @@ file that set values:
|
|||
|
||||
@group
|
||||
;; Set calendar highlighting colors
|
||||
(add-hook 'calendar-load-hook
|
||||
(lambda ()
|
||||
(set-face-foreground 'diary-face "skyblue")
|
||||
(set-face-background 'holiday-face "slate blue")
|
||||
(set-face-foreground 'holiday-face "white")))
|
||||
(with-eval-after-load 'calendar
|
||||
(set-face-foreground 'diary "skyblue")
|
||||
(set-face-background 'holiday "slate blue")
|
||||
(set-face-foreground 'holiday "white"))
|
||||
@end group
|
||||
@end smallexample
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue