help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock as a single command


From: Emanuel Berg
Subject: Re: font-lock as a single command
Date: Sat, 13 Feb 2021 04:16:57 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech wrote:

> I have done. One difficulty is that supinf-enable is
> executed as soon as I read the file. Do not know how it is
> being enabled automatically after I commented out the line
> that said "(add-hook 'crucible-mode-hook #'supinf-enable)".

Well, did you examine the hook to see what's there?

Hooks are variables, so use C-h v.

You can do a hook with this pattern if it makes it more clear.
Note the commented-out line, eval the form there to set the
hook to zero.

(require 'mode-line)
;; (setq conf-space-mode-hook nil)
(defun conf-space-mode-hook-f ()
  (enable-line-mode) )
(add-hook 'conf-space-mode-hook #'conf-space-mode-hook-f)


-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]