7d53585795
There are many stuff that we have in spacemacs which are creating new layers and also creating micro-states. This Snippets try to help with the process (the micro-state is a work in progress). I also set the binding `C-s-/` to `(yas-next-field-or-maybe-expand)` because `tab` doesn't have the behaviour I quite want (to be able to expand a snippet like (defun) inside the new-package snippet and still be able to continue in the outer snippet afterwards. With `tab` this is *not* possible, but with `C-M-/` it *is*. Changed variable name Changed keybinding Renamed snip-dir to spacemacs-snippets-dir Moved `setq` outsidde of inizialization function, and the keybindning too
12 lines
No EOL
312 B
Text
12 lines
No EOL
312 B
Text
# -*- mode: snippet; require-final-newline: nil -*-
|
|
# name: micro-state
|
|
# key: micro
|
|
# binding: direct-keybinding
|
|
# --
|
|
(spacemacs|define-micro-state ${1:micro-state-name}
|
|
${2::doc (spacemacs//$1-ms-documentation)}
|
|
${3::use-minibuffer t}
|
|
${4::evil-leader "${5:Leader-key}"}
|
|
:bindings
|
|
${}
|
|
) |