This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+completion/auto-completion/local/snippets/emacs-lisp-mode/new-package
2016-08-05 08:47:36 +08:00

15 lines
No EOL
436 B
Text

# -*- mode: snippet; require-final-newline: nil -*-
# contributor: Diego Berrocal (cestdiego 4t gm4il d0t com)
# name: new-package
# key: newp
# binding: direct-keybinding
# --
(defun `(spacemacs/get-parent-dir)`/init-${2:package-name} ()
${3:(use-package $2
${4::defer t
}${5::init
${;; This block executes before the package has been loaded}
}${:config
${;; This block executes after the package has been loaded}
})})
$0