Skip to main content
2 of 2
deleted 12 characters in body

Expanding on the other answers, here is a piece of Elisp, allowing to automate this action:

(defun chmod-this-file () "chmod the file corresponding to the current buffer." (interactive) (setq modes (read-file-modes "File modes (octal or symbolic): " buffer-file-name)) (chmod buffer-file-name modes))