diff options
author | Alan Pearce | 2014-08-07 19:50:25 +0100 |
---|---|---|
committer | Alan Pearce | 2014-08-07 19:50:25 +0100 |
commit | 7931b7e3816cf4307a69737aeb1ea8c3727c3f62 (patch) | |
tree | c1c7a1317fd5d0e4efce6eb3abab0be95c9f30ee /tag-emacs | |
parent | 1bebc85ea521154eafc7c392d5e11de623edb1dc (diff) | |
download | dotfiles-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
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 8 |
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)) |