Jim Myhrberg 09cc3eec21 Keep snippet vars definitions in a single format across all snippets and documentation.
The format is:

# var-name: value

Previously snippets used a mixture of the following formatting:

#var-name: value
#var-name : value
# var-name: value
# var-name : value
2011-11-03 20:51:31 +00:00

13 lines
393 B
Plaintext

# 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