From 20337e48126635041453c187adfe602dca230c12 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Aug 2014 09:59:23 +0100 Subject: Emacs: Eager-load helm-dash configuration --- tag-emacs/emacs.d/init.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tag-emacs') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index febe442..1877358 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -329,16 +329,16 @@ (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)))))) - (add-hook 'ansible-mode-hook (ap/create-helm-dash-hook "Ansible")) - (add-hook 'php-mode-hook (ap/create-helm-dash-hook '("PHP" "Symfony"))) - (add-hook 'twig-mode-hook (ap/create-helm-dash-hook '("Twig"))) - (add-hook 'markdown-mode-hook (ap/create-helm-dash-hook '("Markdown"))) - (add-hook 'saltstack-mode-hook (ap/create-helm-dash-hook '("SaltStack"))))) + :init (progn + (defun ap/create-helm-dash-hook (docsets) + (lambda () + (when (require 'helm-dash nil :noerror) + (setq-local helm-dash-docsets docsets)))) + (add-hook 'ansible-mode-hook (ap/create-helm-dash-hook '("Ansible"))) + (add-hook 'php-mode-hook (ap/create-helm-dash-hook '("PHP" "Symfony"))) + (add-hook 'twig-mode-hook (ap/create-helm-dash-hook '("Twig"))) + (add-hook 'markdown-mode-hook (ap/create-helm-dash-hook '("Markdown"))) + (add-hook 'saltstack-mode-hook (ap/create-helm-dash-hook '("SaltStack"))))) (req-package which-func :init (which-function-mode) -- cgit 1.4.1