Org: Add keybinding to insert zero-width spaces

This commit is contained in:
TEC 2021-05-28 15:30:28 +08:00
parent 1dbf68865e
commit 6bd8eed323
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 11 additions and 0 deletions

View File

@ -4569,6 +4569,17 @@ Let's also make creating an org buffer just that little bit easier.
(:prefix "b"
:desc "New empty ORG buffer" "o" #'evil-buffer-org-new))
#+end_src
***** The utility of zero-width spaces
Occasionally in Org you run into annoyances where you want to have two seperate
blocks right together without a space. For example, to *emph*asise part of a word,
or put a currency symbol immediately before an inline source block.
There is a solution to this, it just sounds slightly hacky --- zero width spaces.
Because this is Emacs, we can make this feel much less hacky by making a minor
addition to the Org key map 🙂.
#+begin_src emacs-lisp
(map! :map org-mode-map
:nie "M-SPC M-SPC" (cmd! (insert "\u200B")))
#+end_src
***** List bullet sequence
I think it makes sense to have list bullets change with depth
#+begin_src emacs-lisp