From 7931b7e3816cf4307a69737aeb1ea8c3727c3f62 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 Aug 2014 19:50:25 +0100 Subject: Emacs: Add function for per-mode helm-dash-docsets Use a function generator to avoid repetition --- tag-emacs/emacs.d/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tag-emacs/emacs.d/init.el') 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)) -- cgit 1.4.1