summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2025-02-10 21:17:25 -0500
committerAmin Bandali <bandali@kelar.org>2025-02-10 21:17:25 -0500
commit1c17eb4d7076eb3d942ed85a79caaa691db9b89f (patch)
tree490611d47abd1d50f449916a2e603f15b723583e
parent17ca22454d0875d28a746a999c1c21e0b995e7d9 (diff)
downloadconfigs-1c17eb4d7076eb3d942ed85a79caaa691db9b89f.tar.gz
configs-1c17eb4d7076eb3d942ed85a79caaa691db9b89f.tar.xz
configs-1c17eb4d7076eb3d942ed85a79caaa691db9b89f.zip
Fix a recent void function definition error
run-hooks: Symbol’s function definition is void: gnus-dired-mode To reproduce: load Gnus before opening Dired.
-rw-r--r--.emacs.d/lisp/bandali-gnus.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/lisp/bandali-gnus.el b/.emacs.d/lisp/bandali-gnus.el
index 312ed6d..61a7d34 100644
--- a/.emacs.d/lisp/bandali-gnus.el
+++ b/.emacs.d/lisp/bandali-gnus.el
@@ -223,7 +223,9 @@
(mapconcat #'identity gnus-sorted-header-list "\\|")))
;; `gnus-dired'
- (add-hook 'dired-mode-hook #'gnus-dired-mode)
+ (with-eval-after-load 'dired
+ (require 'gnus-dired)
+ (add-hook 'dired-mode-hook #'gnus-dired-mode))
(with-eval-after-load 'gnus-group
(setopt