π

Figuring out YASnippet

Show Sidebar

Today I finally took the time to figure to the YASnippet Emacs package to create a template for my new blogposts. Turns out there was not a lot to understand. To create a new template you run `M-x` `yas-new-snippet`. In the then opening buffer you just enter your template in plain text and hit `C-c C-c` when you're done.

The three other elements that I needed for my simple snippets:

`(format-time-string "%Y-%m-%d")` $0	  
for (${1:i = 0}; ${2:i < N}; ${3:i++}) {
    $0
        }	  

Comment via email or via Disqus comments below: