Commit 1f5b7087877b

Vincent Demeester <vincent@sbr.pm>
2015-05-06 15:58:08
Setup yasnippets \o/
1 parent 56176b3
Changed files (3)
.config
mr
.emacs.d
.gitignore.d
.config/mr/groups.d/emacs-config
@@ -0,0 +1,2 @@
+[$HOME/.emacs.d/snippets/andreaCrotti-snippets]
+checkout = git clone https://github.com/AndreaCrotti/yasnippet-snippets.git
.emacs.d/emacs.org
@@ -2514,6 +2514,22 @@
    '(define-key yaml-mode-map (kbd "C-c h a") 'lunaryorn-ansible-doc))
    #+END_SRC
 
+** Yasnippet
+
+   Use YASnippet for snippets.
+
+
+   #+BEGIN_SRC emacs-lisp
+     (use-package yasnippet
+       :ensure t
+       :config
+       (progn
+         (setq yas-verbosity 1
+               yas-snippet-dir (expand-file-name "snippets" user-emacs-directory))
+         (yas-global-mode 1)))
+   #+END_SRC
+
+
 ** Clean the modeline
 
    With all the modes (major & minor), the modeline becomes really
.gitignore.d/emacs-config
@@ -2,6 +2,7 @@
 !.emacs.d
 !.emacs.d/*
 !.emacs.d/**
+.emacs.d/snippets
 .emacs.d/gotools
 .emacs.d/provided/*
 !.emacs.d/provided/.placeholder