Last active
April 27, 2019 19:40
-
-
Save goromlagche/0c53ef2cbee35a14dee34e9029c71116 to your computer and use it in GitHub Desktop.
function has documentation .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun camelCaseFileName() | |
| "Get the camel case version of filename. Usefull when generating class name of ruby(or any other lang) file. You can use it in a yasnippet." | |
| ;; # -*- mode: snippet -*- | |
| ;; # name: cls | |
| ;; # key: cls | |
| ;; # -- | |
| ;; class `(camelCaseFileName)` | |
| ;; $0 | |
| ;; end | |
| (interactive) | |
| (s-upper-camel-case (file-name-nondirectory (file-name-sans-extension buffer-file-name)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment