spacemacs/layers/+tools/ansible/config.el
duianto 5900e85abd [ansible] Fix filename regexp, escape period
The `\` backslash before `.yml` in the regex has an orange (warning)
color and describe-char says:
There are text properties here:
  face                 (font-lock-warning-face font-lock-string-face)
  fontified            nil
  help-echo            "This \\ has no effect"

Thanks smile13241324 for pointing out that double backslash escapes
a . (period).
2019-09-10 20:53:54 +02:00

23 lines
782 B
EmacsLisp

;;; config.el --- Ansible Layer functions File for Spacemacs
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Brian Hicks <brian@brianthicks.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; variables
(defvar ansible-auto-encrypt-decrypt t
"Set it to non-nil to seamlessly edit `ansible-vault' encrypted files.
If non-nil then encrypted files are automatically decrypted when opened and
encrypted when saved.")
;; detect filenames compatible with Ansible's recommended layout.
;; http://docs.ansible.com/playbooks_best_practices.html#directory-layout
(setq spacemacs--ansible-filename-re
".*\\(\\(main\\|site\\|encrypted\\|roles/.+\\)\\.yml\\|group_vars/.+\\|host_vars/.+\\)")