[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is font-lock-mode-hook?
From: |
Jonathan Rockway |
Subject: |
Re: What is font-lock-mode-hook? |
Date: |
Sat, 22 Mar 2008 20:03:12 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
* On Sat, Mar 22 2008, Lennart Borgman (gmail) wrote:
> I can't see where it is defined or run.
>
It's created automatically by define-minor-mode.
>From font-core.el:
(define-minor-mode font-lock-mode ...)
Then in easy-mode.el:
(defmacro define-minor-mode (mode ...
...
; mode-name is (symbol-name mode)
(hook (intern (concat mode-name "-hook")))
(hook-on (intern (concat mode-name "-on-hook")))
(hook-off (intern (concat mode-name "-off-hook")))
Anyway, this is documented pretty well (in the docstrings and the Elisp
manual), so please refer to that for more detail.
Regards,
Jonathan Rockway
--
print just => another => perl => hacker => if $,=$"