News for hackers. Stuff that matters.
Re:Ask HN: What is your .emacs file like? by st3fan on Sunday July 31, 2011 @08:43PM (#2830179)
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)
Re:Ask HN: What is your .emacs file like? by rbanffy on Sunday July 31, 2011 @09:26PM (#2830269)
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").