Hacker News new | ask | show | jobs
by st3fan 5434 days 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)
1 comments

That'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").