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/auto-completion/snippets/emacs-lisp-mode/new-package
syl20bnr 6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
  spacemacs-core (default spacemacs)

spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04: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