Mercurial > hg > Members > kokubo > emacs
view .emacs.d/haskell-mode/snippets/haskell-mode/module.exports @ 0:2764b4f45f9f
1st commit
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 21 Apr 2014 04:30:59 +0900 |
parents | |
children |
line wrap: on
line source
# -*- mode: snippet -*- # key: mod # name: exports module # condition: (= (length "mod") (current-column)) # expand-env: ((yas-indent-line 'fixed)) # contributor: Luke Hoersten <luke@hoersten.org> # -- module ${1:`(if (not buffer-file-name) "Module" (let ((name (file-name-sans-extension (buffer-file-name)))) (if (search "src/" name) (replace-regexp-in-string "/" "." (car (last (split-string name "src/")))) (file-name-nondirectory name))))`} ( ${3:export} ${4:, ${5:export}} ) where $0