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: Christopher Dimech
Subject: Re: font-lock as a single command
Date: Sat, 13 Feb 2021 04:56:54 +0100

FYor the hook, I only did this

(defvar crucible-mode-hook nil
  "Hook called when Crucible Mode is enabled.")

> Sent: Saturday, February 13, 2021 at 3:16 PM
> From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: font-lock as a single command
>
> 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]