all repos — nixfiles @ 538e19d1c47a34e80a343ea1fde70e1908955333

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

Emacs: Use ansible dash docset for ansible-mode

Alan Pearce
commit

538e19d1c47a34e80a343ea1fde70e1908955333

parent

19e0b7925af4551e71a5664d23b72efd7c6a3d53

1 file changed, 2 insertions(+), 1 deletion(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -333,7 +333,8 @@ :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)))))))) + (setq-local helm-dash-docsets (if (listp docsets) docsets (list docsets)))))) + (add-hook 'ansible-mode-hook (ap/create-helm-dash-hook "Ansible")))) (req-package which-func :init (which-function-mode)