all repos — nixfiles @ 7931b7e3816cf4307a69737aeb1ea8c3727c3f62

System and user configuration, managed by nix and home-manager

Emacs: Add function for per-mode helm-dash-docsets Use a function generator to avoid repetition

Alan Pearce
commit

7931b7e3816cf4307a69737aeb1ea8c3727c3f62

parent

1bebc85ea521154eafc7c392d5e11de623edb1dc

1 file changed, 8 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -327,6 +327,14 @@ (bind-key "i" #'dired-subtree-insert dired-mode-map)))
;;;; 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))