summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2014-08-07 19:52:31 +0100
committerAlan Pearce2014-08-07 19:52:31 +0100
commit538e19d1c47a34e80a343ea1fde70e1908955333 (patch)
tree02c5d5c20d6bf4666937e4edc4f6331e587a1f09 /tag-emacs/emacs.d
parent19e0b7925af4551e71a5664d23b72efd7c6a3d53 (diff)
downloaddotfiles-538e19d1c47a34e80a343ea1fde70e1908955333.tar.lz
dotfiles-538e19d1c47a34e80a343ea1fde70e1908955333.tar.zst
dotfiles-538e19d1c47a34e80a343ea1fde70e1908955333.zip
Emacs: Use ansible dash docset for ansible-mode
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 4e9a919..8b64dc6 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -333,7 +333,8 @@
             (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)