Skip to content

gollth/snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snippets

Usefull YAS Snippets for Emacs

Installation

Clone this repo, e.g. into ~/.spacemacs.d/snippets

In your Spacemacs config (SPC f e d) enter the path to this repo for the autocompletion layer:

(auto-completion :variables
                 ;; ... other vars here ...
                 auto-completion-private-snippets-directory "~/.spacemacs.d/snippets")

After that you might have to do M-x yas-reload-all RET

Usage

To create new snippet use M-x yas-new-snippet RET and follow the documentation on how to write snippets.

To insert a snippet use SPC i s which will prompt you with a helm query with all snippets for the current major mode.

About

Usefull YAS Snippets for Emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published