Christian Szegedy <szegedy / nospam.or.uni-bonn.de> writes:

> Does someone know how to achieve that each
> newly constructed Ruby files have
> executable permission.
>
> (I have modified my .emacs so that it automatically inserts
> #!/bin/ruby at the beginning, I would like to avoid the need
> for executing chmod manually.)

Try this in your .emacs (or .xemacs/init.el, whichever you use):

(require 'after-save-commands)
(add-to-list 'After-save-alist
             '(("\.rb$" nil nil "chmod +x $f")))

seems to work for me...

-- 
Josh Huber