Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a README

  • Loading branch information...
commit 13cd6d1d2bae644c7182f153f8acc8d94cc78f96 1 parent 70f2939
@tibbe tibbe authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 README.md
View
20 README.md
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.