mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
14 lines
399 B
Plaintext
14 lines
399 B
Plaintext
#name : class ... end
|
|
#contributor : hitesh <hitesh.jasani@gmail.com>
|
|
#group : definitions
|
|
# --
|
|
class ${1:$$
|
|
(let ((fn (capitalize (file-name-nondirectory
|
|
(file-name-sans-extension
|
|
(buffer-file-name))))))
|
|
(cond
|
|
((string-match "_" fn) (replace-match "" nil nil fn))
|
|
(t fn)))}
|
|
$0
|
|
end
|