summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-08-07 19:52:21 +0100
committerAlan Pearce2014-08-07 19:52:21 +0100
commit19e0b7925af4551e71a5664d23b72efd7c6a3d53 (patch)
treea43c775d4b559a9f7128fb6be2933b8baad8773a /tag-emacs
parent7931b7e3816cf4307a69737aeb1ea8c3727c3f62 (diff)
downloaddotfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.tar.lz
dotfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.tar.zst
dotfiles-19e0b7925af4551e71a5664d23b72efd7c6a3d53.zip
Emacs: Create basic ansible major mode
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index e00506f..4e9a919 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