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

11 lines
351 B
Text
Raw Permalink Normal View History

2019-08-28 09:09:30 +02: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