diff options
author | Alex Whitt | 2017-05-19 11:09:26 -0400 |
---|---|---|
committer | Alex Whitt | 2017-05-19 11:09:26 -0400 |
commit | 1fc6889fe4307cd91f5c7fba9aa794b0085da983 (patch) | |
tree | b3a47ff1921b6135388db8e07eadfbac6cf4faa7 /emacs-ansible.install | |
download | aur-1fc6889fe4307cd91f5c7fba9aa794b0085da983.tar.gz |
Initial commit
Diffstat (limited to 'emacs-ansible.install')
-rw-r--r-- | emacs-ansible.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/emacs-ansible.install b/emacs-ansible.install new file mode 100644 index 000000000000..ab1949a8e7f5 --- /dev/null +++ b/emacs-ansible.install @@ -0,0 +1,31 @@ +post_install () { + +cat << EOF + +==> Add this code to your .emacs file to use the mode: + +(require 'ansible) +(add-hook 'yaml-mode-hook '(lambda () (ansible 1))) + +==> Set the path to your vault password file ("~/vault_pass" by default): + +(setq ansible::vault-password-file "path/to/pwd/file") + +==> Optionally, use the following to auto decrypt/encrypt vault files: + +(add-hook 'ansible-hook 'ansible::auto-decrypt-encrypt) + +==> Or do the above with use-package: + +(use-package ansible + :config + (add-hook 'yaml-mode-hook '(lambda () (ansible 1))) + (setq ansible::vault-password-file "path/to/pwd/file") ; If not in the default location +(add-hook 'ansible-hook 'ansible::auto-decrypt-encrypt)) ; For auto de/encryption + +EOF +} + +post_upgrade () { + post_install $1 +} |