Install yasnippet and vala-snippets packages
This commit is contained in:
13
elpa/yasnippet-20160924.2001/snippets/ruby-mode/mod
Normal file
13
elpa/yasnippet-20160924.2001/snippets/ruby-mode/mod
Normal file
@@ -0,0 +1,13 @@
|
||||
# name: module ... end
|
||||
# contributor: hitesh <hitesh.jasani@gmail.com>, jimeh <contact@jimeh.me>
|
||||
# key: mod
|
||||
# --
|
||||
module ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
(or (buffer-file-name)
|
||||
(buffer-name (current-buffer))))))))
|
||||
(while (string-match "_" fn)
|
||||
(setq fn (replace-match "" nil nil fn)))
|
||||
fn)`}
|
||||
$0
|
||||
end
|
Reference in New Issue
Block a user