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
339 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: class ... end
  3. # key: cls
  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