[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: highlight-sexp-mode add-hook with (highlight-sexp-mode 0)
From: |
Heime |
Subject: |
Re: highlight-sexp-mode add-hook with (highlight-sexp-mode 0) |
Date: |
Thu, 27 Oct 2022 06:19:58 +0000 |
------- Original Message -------
On Thursday, October 27th, 2022 at 5:43 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Wed, 26 Oct 2022 21:55:23 +0000
> > From: Heime heimeborgia@protonmail.com
> >
> > I am using highlight-sexp-mode with the following in my init file
> >
> > (add-hook 'emacs-lisp-mode-hook 'highlight-sexp-mode)
> >
> > But then I also call
> >
> > (if highlight-sexp-mode (highlight-sexp-mode 0))
> >
> > Yet when I load an ".el" file, I still get "highlight-sexp-mode" activated.
>
>
> Crystal ball says you do the latter too early, or in the wrong buffer.
Because I do
(if highlight-sexp-mode (highlight-sexp-mode 0))
in my init file. Sounds that the procedure should be to remove the mode hook
if I want to disable the capture of files by "highlight-sexp-mode" if a mode
hook
had already been activated.