Permalink
Browse files

Add a README

  • Loading branch information...
1 parent 70f2939 commit 13cd6d1d2bae644c7182f153f8acc8d94cc78f96 @tibbe tibbe committed Feb 29, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 README.md
View
@@ -0,0 +1,20 @@
+A set of Haskell snippets to use with
+[yasnippet](http://capitaomorte.github.com/yasnippet/).
+
+## Installation
+
+1. Clone the repo into e.g. `~/emacs.d/mysnippets/haskell-mode`.
+
+2. Tell yasnippet about the snippets, by adding them to your `init.el`
+ file.
+
+ ;; Tell yasnippet where it can find the Haskell snippets
+ (setq yas/root-directory "~/emacs.d/mysnippets/haskell-mode")
+
+ ;; Load the snippets
+ (yas/load-directory yas/root-directory)
+
+## Usage
+
+In a Haskell source file, with haskell-mode loaded, type e.g. `imp`
+and press tab.

0 comments on commit 13cd6d1

Please sign in to comment.