yasnippet-snippets/emacs-lisp-mode/defun
Lowe Thiderman a2e443c6c8 elisp: Update defun
Always add docstring field.
Make the interactive part use tab stop fields for the arguments.
2016-01-31 11:16:09 +01:00

8 lines
141 B
Plaintext

# -*- mode: snippet -*-
# name: defun
# key: def
# --
(defun ${1:fun} (${2:args})
"${3:docstring}"
${4:(interactive${5: "${6:P}"})}
$0)