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

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

Re: highlight-sexp-mode add-hook with (highlight-sexp-mode 0)


From: Emanuel Berg
Subject: Re: highlight-sexp-mode add-hook with (highlight-sexp-mode 0)
Date: Thu, 27 Oct 2022 04:51:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Heime wrote:

> (if highlight-sexp-mode (highlight-sexp-mode 0))

Better to use `when' here in terms of Lisp.

Note that not all minor modes have variables, that should have
generated an error if so in this case so I don't think that's
it tho. (Example: `auto-save-mode', only a function.)

And actually there's no real need to check if something is
enabled if you just want to disable it, just disable it.

To disable stuff from Lisp, -1 is more clear than 0.

However ... that's a lot said about such a small thing,
without saying why it doesn't work.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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