From 19e0b7925af4551e71a5664d23b72efd7c6a3d53 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 Aug 2014 19:52:21 +0100 Subject: Emacs: Create basic ansible major mode --- tag-emacs/emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tag-emacs/emacs.d') 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 -- cgit 1.4.1