unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: highlight-sexp-mode add-hook with (highlight-sexp-mode 0)
Date: Thu, 27 Oct 2022 06:19:58 +0000	[thread overview]
Message-ID: <QBTX53hDVewKN_meI2k8_jFSBV0KKVx70mECSAf9GwjJ3xqQiPMG1fUR995JYcCkZmpGNwGYyDM23QWCMYB8X8fjGf2uv4mIo8AtN2mNgak=@protonmail.com> (raw)
In-Reply-To: <83k04ln7nr.fsf@gnu.org>

------- 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.



      reply	other threads:[~2022-10-27  6:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-26 21:55 highlight-sexp-mode add-hook with (highlight-sexp-mode 0) Heime
2022-10-27  2:51 ` Emanuel Berg
2022-10-27  5:43 ` Eli Zaretskii
2022-10-27  6:19   ` Heime [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='QBTX53hDVewKN_meI2k8_jFSBV0KKVx70mECSAf9GwjJ3xqQiPMG1fUR995JYcCkZmpGNwGYyDM23QWCMYB8X8fjGf2uv4mIo8AtN2mNgak=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).