miniblog.
← Back to all posts
Apr 7, 2019 at 19:50
Today I learnt that Emacs keyboard macros can just be strings in a keymap! (global-set-key (kbd "C-c h") "hello") Types the keys h, e, l, l, o in the current buffer, which might insert or do something else depending on the mode.
Wilfred Hughes
Related Posts
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, learnt, Today, buffer, mode Score: 159.6
Jun 13, 2015 at 18:39
Lurking in #emacs on freenode is very worthwhile. Today I learnt that `C-h e` is a shortcut for accessing the *Messages* buffer.
Wilfred Hughes
Shared words: Emacs, learnt, Today, buffer Score: 111.3
Sep 19, 2022 at 16:12
Today I learnt that Emacs will do a best-effort parse of expressions in comments too, unless you set parse-sexp-ignore-comments. That's all well and good until org.el has ASCII smileys!
https://github.com/bzg/org-mode/blob/4d8d7d6cb42e388572b4f5d227e9b3c9da6ca4a7/lisp/org.el#L4815-L4816
("unbalanced paren")
org-mode/lisp/org.el at 4d8d7d6cb42e388572b4f5d227e9b3c9da6ca4a7 · bzg/org-mode
This is a MIRROR only, do not send PR. Contribute to bzg/org-mode development by creating an account on GitHub.
Wilfred Hughes
Shared words: Emacs, learnt, Today, set Score: 109.8