Add tools/ansible
This commit is contained in:
parent
75036cefb0
commit
62212a4b94
4 changed files with 36 additions and 4 deletions
25
modules/tools/ansible/config.el
Normal file
25
modules/tools/ansible/config.el
Normal file
|
@ -0,0 +1,25 @@
|
|||
;;; tools/ansible/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! ansible
|
||||
:commands ansible::auto-decrypt-encrypt
|
||||
:init
|
||||
(put 'ansible::vault-password-file 'safe-local-variable #'stringp)
|
||||
:config
|
||||
(setq ansible::section-face 'font-lock-variable-name-face
|
||||
ansible::task-label-face 'font-lock-doc-face)
|
||||
(map! :map ansible::key-map
|
||||
:localleader
|
||||
:n "d" #'ansible::decrypt-buffer
|
||||
:n "e" #'ansible::encrypt-buffer
|
||||
:n "h" #'ansible-doc))
|
||||
|
||||
(after! ansible-doc
|
||||
(set-evil-initial-state! '(ansible-doc-module-mode) 'emacs))
|
||||
|
||||
(def-package! jinja2-mode
|
||||
:mode "\\.j2$")
|
||||
|
||||
(def-project-mode! +ansible-yaml-mode
|
||||
:modes (yaml-mode)
|
||||
:add-hooks (ansible ansible::auto-decrypt-encrypt ansible-doc-mode)
|
||||
:files ("roles/"))
|
Loading…
Add table
Add a link
Reference in a new issue