summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-10-11 18:37:56 +0200
committerTimo Wilken2023-10-11 18:37:56 +0200
commitfa1cb8cf1ad1430cbdfe81aac1b4594b53517e7d (patch)
treed295671f081d4a81d9c18889bbfedd8fca151426
parent48da2fa1c5fdbc3842ce87f5afce15c37101d304 (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.
-rw-r--r--tw/home/files/emacs-init.el14
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)