From 0f9babf11080ca4ee61ac967248f55bd8b242e07 Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Sun, 27 Nov 2022 14:46:18 -0900 Subject: [PATCH] Org: zero-width space insertion with SPC-` --- lisp/mitch-packages.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/mitch-packages.el b/lisp/mitch-packages.el index 1ab613a..b27f72b 100644 --- a/lisp/mitch-packages.el +++ b/lisp/mitch-packages.el @@ -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