Add tools/ansible
This commit is contained in:
parent
75036cefb0
commit
62212a4b94
4 changed files with 36 additions and 4 deletions
|
@ -63,6 +63,7 @@
|
||||||
vc ; version-control and Emacs, sitting in a tree
|
vc ; version-control and Emacs, sitting in a tree
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
|
;ansible
|
||||||
;docker
|
;docker
|
||||||
editorconfig ; let someone else argue about tabs vs spaces
|
editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;ein ; tame Jupyter notebooks with emacs
|
;ein ; tame Jupyter notebooks with emacs
|
||||||
|
|
|
@ -38,10 +38,6 @@
|
||||||
;;
|
;;
|
||||||
;; Frameworks
|
;; Frameworks
|
||||||
|
|
||||||
(def-project-mode! +data-ansible-mode
|
|
||||||
:modes (yaml-mode)
|
|
||||||
:files ("roles/"))
|
|
||||||
|
|
||||||
(def-project-mode! +data-vagrant-mode
|
(def-project-mode! +data-vagrant-mode
|
||||||
:files ("Vagrantfile"))
|
:files ("Vagrantfile"))
|
||||||
|
|
||||||
|
|
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/"))
|
10
modules/tools/ansible/packages.el
Normal file
10
modules/tools/ansible/packages.el
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; tools/ansible/packages.el
|
||||||
|
|
||||||
|
(package! yaml-mode)
|
||||||
|
(package! ansible)
|
||||||
|
(package! ansible-doc)
|
||||||
|
(package! jinja2-mode)
|
||||||
|
|
||||||
|
(when (featurep! :completion company)
|
||||||
|
(package! company-ansible))
|
Loading…
Add table
Add a link
Reference in a new issue