ubulog: Emacsの保存関係の設定 Emacsにおいてスクリプト保存時に実行属性をつける設定は定番。俺も大昔から使っていた。あまりにも昔なのでいつ設定したのか覚えていない。 (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) ほほぉ、今では標準で設定できるんだね。引用。 (defun executable-make-buffer-file-executable-if-script-p () "Make file executable according to umask if not already executable. If file already has any execute bits set at all, do not change existing file