diff options
author | Alan Pearce | 2014-08-07 20:03:31 +0100 |
---|---|---|
committer | Alan Pearce | 2014-08-07 20:03:31 +0100 |
commit | d6de014751ceb9ec4460cd84a293199348c5e6b7 (patch) | |
tree | 018235b0df60b7ea412bef11e40c43de254b2891 /tag-emacs | |
parent | 538e19d1c47a34e80a343ea1fde70e1908955333 (diff) | |
download | nixfiles-d6de014751ceb9ec4460cd84a293199348c5e6b7.tar.lz nixfiles-d6de014751ceb9ec4460cd84a293199348c5e6b7.tar.zst nixfiles-d6de014751ceb9ec4460cd84a293199348c5e6b7.zip |
Emacs: Configure helm-dash-docsets for PHP & Twig
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 8b64dc68..d2bfab19 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -334,7 +334,9 @@ (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 '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"))))) (req-package which-func :init (which-function-mode) @@ -1244,7 +1246,6 @@ mouse-1: Display Line and Column Mode Menu")))))) (req-package web-mode :mode (("/views/.*\\.php\\'" . web-mode) - ("\\.html\\.twig\\'" . web-mode) ("/layouts/.*\\.html" . web-mode) ("/templates/.*\\.php\\'" . web-mode)) :config (setq web-mode-code-indent-offset 4 @@ -1255,6 +1256,9 @@ mouse-1: Display Line and Column Mode Menu")))))) web-mode-comment-style 2 web-mode-disable-auto-pairing t)) +(define-derived-mode twig-mode web-mode "Twig") +(add-to-list 'auto-mode-alist '("\\.html\\.twig\\'" . twig-mode)) + (req-package mmm-auto :config (progn (mmm-add-classes |