mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 08:54:19 +00:00
Last commit before releasing 0.6.0
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
#group : definitions
|
||||
# --
|
||||
class ${1:$$
|
||||
(let ((fn (capitalize (file-name-nondirectory
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
(buffer-file-name))))))
|
||||
(or (buffer-file-name)
|
||||
(buffer-name (current-buffer))))))))
|
||||
(cond
|
||||
((string-match "_" fn) (replace-match "" nil nil fn))
|
||||
(t fn)))}
|
||||
(t fn)))`}
|
||||
$0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user