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