Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
377 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # name: class ... end
  3. # contributor : hitesh <hitesh.jasani@gmail.com>
  4. # group : definitions
  5. # --
  6. class ${1:`(let ((fn (capitalize (file-name-nondirectory
  7. (file-name-sans-extension
  8. (or (buffer-file-name)
  9. (buffer-name (current-buffer))))))))
  10. (replace-regexp-in-string "_" "" fn t t))`}
  11. $0
  12. end