~ubuntu-branches/ubuntu/trusty/haskell-mode/trusty-proposed

« back to all changes in this revision

Viewing changes to snippets/haskell-mode/module

  • Committer: Package Import Robot
  • Author(s): Barak A. Pearlmutter
  • Date: 2013-12-27 17:38:40 UTC
  • mfrom: (1.3.5)
  • Revision ID: package-import@ubuntu.com-20131227173840-5qjuscd4uj7ag382
Tags: 13.10-2
* build dependency on texinfo for /usr/bin/makeinfo (closes: #730955)
* no haskell-ghci.el breaking agda-mode (<< 2.3.2) (closes: #731326)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: snippet -*-
 
2
# key: mod
 
3
# name: simple module
 
4
# condition: (= (length "mod") (current-column))
 
5
# expand-env: ((yas-indent-line 'fixed))
 
6
# contributor: Luke Hoersten <luke@hoersten.org>
 
7
# --
 
8
module ${1:`(if (not buffer-file-name) "Module"
 
9
                (let ((name (file-name-sans-extension (buffer-file-name))))
 
10
                     (if (search "src/" name)
 
11
                         (replace-regexp-in-string "/" "." (car (last (split-string name "src/"))))
 
12
                         (file-name-nondirectory name))))`} where
 
13
 
 
14
$0
 
 
b'\\ No newline at end of file'