Comments on 2015-01-10 A few random Emacs tips

About item 6, you can also use `sh-set-shell`, which will prompt you for the interpreter, add the shebang and mark the file as executable.

It is bound to `C-c :` in `shell-script-mode`, and can apparently be used in any mode where `#` start comments (for example python).

– SJSHunter 2015-01-16 16:21 UTC


And for item 5, you can shorten this into

(defalias ‘cal ‘calendar)

and as a bonus, cal will inherit the docstring from calendar (with a mention that it is an alias).

– SJSHunter 2015-01-16 16:23 UTC