2 ms·
Don't know where I found this, but I like this little gem: (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) It automatica
by st3fan 15y ago
Don't know where I found this, but I like this little gem:
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
It automatically makes files executable that look like they are scripts. (Start with #!/some/interpreter)
- rbanffy 15y agoThat's a really good idea. Now that you said that, I think I'll build some templates for commonly added files (like importing Django or GAE modules when the file is called "models.py").