legacy-dotfiles/emacs/.emacs.d/snippets/ruby-mode/mod

11 lines
351 B
Text
Raw Permalink Normal View History

2015-11-21 23:34:48 +01:00
# -*- mode: snippet; require-final-newline: nil -*-
# name: module ... end
# key: mod
# group: definitions
# --
module ${1:`(let ((fn (capitalize (file-name-nondirectory
(directory-file-name
default-directory)))))
(replace-regexp-in-string "_" "" fn t t))`}
$0
end