1
0
Fork 0
emacs-config/oni-ruby/snippets/ruby-mode/mod

11 lines
No EOL
351 B
Text

# -*- 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