Skip to content

Instantly share code, notes, and snippets.

@goromlagche
Last active April 27, 2019 19:40
Show Gist options
  • Select an option

  • Save goromlagche/0c53ef2cbee35a14dee34e9029c71116 to your computer and use it in GitHub Desktop.

Select an option

Save goromlagche/0c53ef2cbee35a14dee34e9029c71116 to your computer and use it in GitHub Desktop.
function has documentation .
(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