Org: zero-width space insertion with SPC-`

This commit is contained in:
MitchMarq42 2022-11-27 14:46:18 -09:00
parent 7ede3abb4c
commit 0f9babf110

View File

@ -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)) (setq-local electric-pair-text-pairs electric-pair-pairs))
(add-hook 'org-mode-hook 'org-add-electric-pairs) (add-hook 'org-mode-hook 'org-add-electric-pairs)
(require 'mitch-orgstuff) (require 'mitch-orgstuff)
(defun insert-zws ()
(interactive)
(insert 8203)) ; this is a Zero Width Space. It makes things confusing.
:hook :hook
(org-mode . turn-off-line-numbers) (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 (use-package org-tempo
:straight (:type built-in) :straight (:type built-in)
:after org :after org