Added emacs scripts

This commit is contained in:
hellerve
2015-05-27 18:47:14 +02:00
parent 547ae588af
commit c9f9c1d44f
137 changed files with 25707 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# key: mod
# name: simple 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))))`} where
$0