diff options
author | Alan Pearce | 2014-08-07 19:52:21 +0100 |
---|---|---|
committer | Alan Pearce | 2014-08-07 19:52:21 +0100 |
commit | 19e0b7925af4551e71a5664d23b72efd7c6a3d53 (patch) | |
tree | a43c775d4b559a9f7128fb6be2933b8baad8773a /tag-emacs | |
parent | 7931b7e3816cf4307a69737aeb1ea8c3727c3f62 (diff) | |
download | nixfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.tar.lz nixfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.tar.zst nixfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.zip |
Emacs: Create basic ansible major mode
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index e00506f0..4e9a9199 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -688,6 +688,9 @@ mouse-1: Display Line and Column Mode Menu")))))) ("/host_vars/.*" . yaml-mode) ("\\.sls\\'" . yaml-mode))) +(define-derived-mode ansible-mode yaml-mode "Ansible") +(add-to-list 'auto-mode-alist '("\\(?:ansible.+\\|roles/.+/\\(?:tasks\\|handlers\\)\\)/.+\\.yml\\'" . ansible-mode)) + ;;;; Planning (req-package org |