Org: zero-width space insertion with SPC-`
This commit is contained in:
parent
7ede3abb4c
commit
0f9babf110
@ -549,9 +549,18 @@ See https://emacs.stackexchange.com/questions/2538/how-to-define-additional-mode
|
||||
(setq-local electric-pair-text-pairs electric-pair-pairs))
|
||||
(add-hook 'org-mode-hook 'org-add-electric-pairs)
|
||||
(require 'mitch-orgstuff)
|
||||
(defun insert-zws ()
|
||||
(interactive)
|
||||
(insert 8203)) ; this is a Zero Width Space. It makes things confusing.
|
||||
:hook
|
||||
(org-mode . turn-off-line-numbers)
|
||||
(org-mode . org-vw-mode))
|
||||
(org-mode . org-vw-mode)
|
||||
:general (general-define-key
|
||||
:states 'insert
|
||||
:maps 'org-mode-map
|
||||
"SPC" (general-key-dispatch 'self-insert-command
|
||||
:timeout 0.1
|
||||
"`" 'insert-zws)))
|
||||
(use-package org-tempo
|
||||
:straight (:type built-in)
|
||||
:after org
|
||||
|
Loading…
Reference in New Issue
Block a user