Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1e7675a171
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.402 kB
# name: class ... end
# contributor: hitesh <hitesh.jasani@gmail.com>
# key: cls
# --
class ${1:`(let ((fn (capitalize (file-name-nondirectory
(file-name-sans-extension
(or (buffer-file-name)
(buffer-name (current-buffer))))))))
(cond
((string-match "_" fn) (replace-match "" nil nil fn))
(t fn)))`}
$0
end
Jump to Line
Something went wrong with that request. Please try again.