Reduce `yas-new-snippet-default'

* yasnippet.el (yas-new-snippet-default): Remove
  "require-final-newline: nil", it's redundant since `snippet-mode' already
  sets that.  Also remove the direct-keybinding, since it's hardly ever
  used, and often the literal "# binding: direct-keybinding" ends up in
  actual snippets.
This commit is contained in:
Noam Postavsky 2016-01-31 12:48:06 -05:00
parent 8632262a50
commit 88b7950554

View File

@ -202,10 +202,9 @@ created with `yas-new-snippet'. "
(defvaralias 'yas/root-directory 'yas-snippet-dirs) (defvaralias 'yas/root-directory 'yas-snippet-dirs)
(defcustom yas-new-snippet-default "\ (defcustom yas-new-snippet-default "\
# -*- mode: snippet; require-final-newline: nil -*- # -*- mode: snippet -*-
# name: $1 # name: $1
# key: ${2:${1:$(yas--key-from-desc yas-text)}}${3: # key: ${2:${1:$(yas--key-from-desc yas-text)}}
# binding: ${4:direct-keybinding}}
# -- # --
$0" $0"
"Default snippet to use when creating a new snippet. "Default snippet to use when creating a new snippet.