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.

13 lines
455 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: module ... end
  3. # contributor: hitesh <hitesh.jasani@gmail.com>, jimeh <contact@jimeh.me>
  4. # key: mod
  5. # --
  6. module ${1:`(let ((fn (capitalize (file-name-nondirectory
  7. (file-name-sans-extension
  8. (or (buffer-file-name)
  9. (buffer-name (current-buffer))))))))
  10. (while (string-match "_" fn)
  11. (setq fn (replace-match "" nil nil fn)))
  12. fn)`}
  13. $0
  14. end