miniblog.
← Back to all posts
Jan 11, 2017 at 21:33
Emacs tip: revert-buffer will reset a buffer as if you've just opened it. Handy if you've just chmod'd a shell script: switches to sh-mode.
Wilfred Hughes
Related Posts
May 26, 2015 at 22:12
Emacs tip of the day: M-: evaluates elisp snippets, but C-u M-: inserts the result into the current buffer. Really handy for quick scripts.
Wilfred Hughes
Shared words: Emacs, tip, buffer, Handy, script Score: 154.6
Jul 6, 2014 at 21:23
Emacs tip of the day: M-j when typing a comment will create a newline prefixed with a mode-specific comment character. Handy.
Wilfred Hughes
Shared words: Emacs, tip, will, Handy, mode Score: 143.6
Sep 20, 2018 at 23:28
Today I learnt that Emacs has a notion of 'permanent' variables!
https://www.gnu.org/software/emacs/manual/html_node/elisp/Creating-Buffer_002dLocal.html
These are variables that persist even when you change major mode (which generally resets buffer-local variables).
Creating Buffer-Local (GNU Emacs Lisp Reference Manual)
Creating Buffer-Local (GNU Emacs Lisp Reference Manual)
Wilfred Hughes
Shared words: Emacs, buffer, reset, mode Score: 110.3