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.
 
 
 
 
 
 

14 lines
403 B

# -*- mode: snippet -*-
# name: module ... end
# group : definitions
# key: mod
# --
module ${1:`(let ((fn (capitalize (file-name-nondirectory
(file-name-sans-extension
(or (buffer-file-name)
(buffer-name (current-buffer))))))))
(while (string-match "_" fn)
(setq fn (replace-match "" nil nil fn)))
fn)`}
$0
end