Last active
December 6, 2020 12:51
-
-
Save enisozgen/e97fc81111d89b9bebbf2dc70f9bc134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; For more check my blog http://en.enisozgen.com/ansible-surround/ | |
;; Surroun with quotes and curly brackets | |
;; evil-surround-edit: | |
;; SPC s h converts: item --> {{ item }} | |
;; SPC s H converts: item --> "{{ item }}" | |
(add-hook 'yaml-mode-hook (lambda () | |
;; SPC s H | |
(push '(?H "\"{{ " . " }}\"") evil-surround-pairs-alist) | |
;; SPC s h | |
(push '(?h "{{ " . " }}") evil-surround-pairs-alist))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment