summaryrefslogtreecommitdiff
path: root/tw/home/files/emacs-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tw/home/files/emacs-init.el')
-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)