diff options
author | Timo Wilken | 2023-10-11 18:37:56 +0200 |
---|---|---|
committer | Timo Wilken | 2023-10-11 18:37:56 +0200 |
commit | fa1cb8cf1ad1430cbdfe81aac1b4594b53517e7d (patch) | |
tree | d295671f081d4a81d9c18889bbfedd8fca151426 /tw/home/files/emacs-init.el | |
parent | 48da2fa1c5fdbc3842ce87f5afce15c37101d304 (diff) |
Apply dash-docs customizations early enough
If they are part of counsel-dash's :custom, they're applied after :config
runs, and :config fails.
Diffstat (limited to 'tw/home/files/emacs-init.el')
-rw-r--r-- | tw/home/files/emacs-init.el | 14 |
1 files changed, 8 insertions, 6 deletions
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) |