What is Nostr?
Dan Drake 🦆 /
npub1yg7…6625
2023-08-15 10:59:21

Dan Drake 🦆 on Nostr: Inspired by npub15fe8s…3x47v: my #emacs tip of the week: Use the :custom directive ...

Inspired by npub15fe8snwf0jsk93au6haj3zrtxx9awz3wcc8lxx6qmypv6tndww6sp3x47v (npub15fe…x47v): my #emacs tip of the week:

Use the :custom directive in use-package declarations instead of setq in :config!

https://www.gnu.org/software/emacs/manual/html_node/use-package/User-options.html

Instead of something like

:config
(setq foo "some value")

You can do

:custom
(foo "some value" "comment about setting 'foo' to 'some value'")

The manual says "This is better than using setq in a :config block, as customizable variables might have some code associated with it that Emacs will execute when you assign values to them."
Author Public Key
npub1yg7yeq3nxwjn790chg6p4t2gylz73m9djtqemq6tp0sg6xp2m95s9q6625