summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2023-06-04 17:03:43 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2023-06-04 18:24:08 +0200
commitd0f1731bab471ad2a7de685a85b7c3e571e292da (patch)
tree28d2869a63e7d45520f079a1241676aede944c87 /.emacs.d
parent11fcabc479b8a401c2189bed8f500db9af08cd47 (diff)
downloaddotfiles-d0f1731bab471ad2a7de685a85b7c3e571e292da.tar.xz
Convert diff-hl tweaks to use-package
Puzzled by this problem I have with :hook. "(use-package) Hooks" suggests that if package X defines function X-foo to be used by package Y in Y-bar-hook, then the idiomatic thing to do is… (use-package X :hook ((Y-bar . X-foo))) … but empirically, if Y.el contains… (defcustom Y-bar-hook '(Y-quux Y-corge)) (add-hook 'Y-bar-hook #'Y-grault) … then Y-bar-hook will be set to '(X-foo Y-grault): it will be missing the functions added in the defcustom form. Since add-hook does this: (or (boundp hook) (set hook nil)) I am assuming that the problem happens when use-package runs X's :hook additions before Y is loaded. No idea (a) if I can reproduce from -Q (b) if this is a SNAFU from setting always-defer (c) if this could be solved by sprinkling :after or :requires.
Diffstat (limited to '.emacs.d')
0 files changed, 0 insertions, 0 deletions