Skip to content

Instantly share code, notes, and snippets.

@enisozgen
Last active December 6, 2020 12:51
Show Gist options
  • Save enisozgen/e97fc81111d89b9bebbf2dc70f9bc134 to your computer and use it in GitHub Desktop.
Save enisozgen/e97fc81111d89b9bebbf2dc70f9bc134 to your computer and use it in GitHub Desktop.
;; 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