diff --git a/README.org b/README.org index 6e6848e..8b25e1a 100644 --- a/README.org +++ b/README.org @@ -16,3 +16,6 @@ There are a few things to immediately note: - Typing ~qq~ will change your input method. This is sort-of a built-in feature, but the default trigger is to type ~C-\~, which is annoying to press. The ~qq~ behavior is built into Japanese-mode specifically and normally toggles in and out of ~japanese-ascii~, which is literally just normal text except ~qq~ switches back to Japanese. * 2022-09-26 12:57 pm This is the time of day that I wrote the thing that creates the above heading now. It works it works it works... + +_this is underlined_ and that works with electric pairs now... "And" =so= +does +this and this and+ *not this* either... diff --git a/lisp/mitch-packages.el b/lisp/mitch-packages.el index faa9188..4eb1816 100644 --- a/lisp/mitch-packages.el +++ b/lisp/mitch-packages.el @@ -471,6 +471,17 @@ targets." (add-hook 'after-save-hook #'(lambda () (if (equal major-mode 'org-mode) (org-babel-tangle)))) + (setq electric-pair-org-pairs `( + (,(string-to-char "_") . ,(string-to-char "_")) + (,(string-to-char "/") . ,(string-to-char "/")) + (,(string-to-char "*") . ,(string-to-char "*")) + (,(string-to-char "+") . ,(string-to-char "+")) + (,(string-to-char "+") . ,(string-to-char "+")) + (,(string-to-char "=") . ,(string-to-char "=")))) + + (dolist (pair electric-pair-org-pairs) + (add-to-list 'electric-pair-pairs + pair)) (require 'mitch-orgstuff) :hook (org-mode . turn-off-line-numbers)