jsallis / nu-yasnippets

TextMate-like snippets for Nu + Emacs + YASnippet

This URL has Read+Write access

name age message
file README.markdown Loading commit data...
directory text-mode/
README.markdown

nu-yasnippets

nu-yasnippets provides Nu snippets for use in Emacs with the YASnippet extension enabled

Requirements

You need to have nu-mode and yasnippet installed.

Installation

Clone the git repository into a directory in your Emacs load path (ie. .emacs.d, elisp, etc.). This will create the following directory structure:

nu-yasnippets
    -> text-mode
        -> nu-mode

Add the following line to your .emacs file after the section that you loaded yasnippet (replacing .emacs.d with the directory that you cloned nu-yasnippets into):

(yas/load-directory "~/.emacs.d/nu-yasnippets")

Usage

Open a Nu file, type one of the snippet abbreviations, press tab and your snippet should be inserted. Use tab to jump through the placeholders and insert your desired text.

You will know that you have yasnippet support if "yas" appears in your mode line when you have a Nu file open. You should also see "nu-mode" in your YASnippet menu (if you use a menu in Emacs at all).