From fa1cb8cf1ad1430cbdfe81aac1b4594b53517e7d Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 11 Oct 2023 18:37:56 +0200 Subject: Apply dash-docs customizations early enough If they are part of counsel-dash's :custom, they're applied after :config runs, and :config fails. --- tw/home/files/emacs-init.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tw/home/files') diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index 2240fda9..a5c73d8d 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -150,7 +150,13 @@ :config (counsel-mode +1) :diminish counsel-mode) -(use-package dash-docs) +(use-package dash-docs + :custom + (dash-docs-docsets-path + (file-name-as-directory (tw/xdg-emacs-subdir 'data "dash-docsets")) + "Store docsets in the XDG data directory.") + (dash-docs-browser-func 'eww "Open documentation pages using `eww' instead of an external browser.") + (dash-docs-enable-debugging nil "Disable popping up useless warnings.")) (defun tw/counsel-dash-is-help () "Install `counsel-dash-at-point' as `evil-lookup-func'." @@ -180,11 +186,7 @@ . tw/counsel-dash-is-help) :config ;; Activate all installed docsets by default. - (setq counsel-dash-common-docsets (dash-docs-installed-docsets)) - :custom - (counsel-dash-docsets-path (tw/xdg-emacs-subdir 'data "dash-docsets/") "Store docsets in the XDG data directory.") - (counsel-dash-browser-func 'eww "Open documentation pages using `eww' instead of an external browser.") - (counsel-dash-enable-debugging nil "Disable popping up useless warnings.")) + (setq counsel-dash-common-docsets (dash-docs-installed-docsets))) (use-package rainbow-mode :after (evil) -- cgit v1.2.3