summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-08-07 19:50:25 +0100
committerAlan Pearce2014-08-07 19:50:25 +0100
commit7931b7e3816cf4307a69737aeb1ea8c3727c3f62 (patch)
treec1c7a1317fd5d0e4efce6eb3abab0be95c9f30ee
parent1bebc85ea521154eafc7c392d5e11de623edb1dc (diff)
downloaddotfiles-7931b7e3816cf4307a69737aeb1ea8c3727c3f62.tar.lz
dotfiles-7931b7e3816cf4307a69737aeb1ea8c3727c3f62.tar.zst
dotfiles-7931b7e3816cf4307a69737aeb1ea8c3727c3f62.zip
Emacs: Add function for per-mode helm-dash-docsets
Use a function generator to avoid repetition
-rw-r--r--tag-emacs/emacs.d/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 2c619ca..e00506f 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -327,6 +327,14 @@
 
 ;;;; Documentation
 
+(req-package helm-dash
+  :defer t
+  :config (progn
+            (defun ap/create-helm-dash-hook (docsets)
+              (lambda ()
+                (when (require 'helm-dash nil :noerror)
+                  (setq-local helm-dash-docsets (if (listp docsets) docsets (list docsets))))))))
+
 (req-package which-func
   :init (which-function-mode)
   :config (setq which-func-modes t))