From 1c17eb4d7076eb3d942ed85a79caaa691db9b89f Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 10 Feb 2025 21:17:25 -0500 Subject: Fix a recent void function definition error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run-hooks: Symbol’s function definition is void: gnus-dired-mode To reproduce: load Gnus before opening Dired. --- .emacs.d/lisp/bandali-gnus.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-83-g751a