On Sunday, 16 Jan 2022 at 00:36, Timothy wrote: > Hmm. Not sure about this. Keystroke wise we’re comparing $$ > to \(. The latter can be completed by smartparens, but since > single dollars are reasonable Org content the former can’t. > At this point the only argument is muscle memory, and if
As an aside, I will suggest including the following code in your Emacs customization: #+begin_src emacs-lisp :tangle "esf-org.el" ;; from Nicolas Richard <theonewiththeevill...@yahoo.fr> ;; Date: Fri, 8 Mar 2013 16:23:02 +0100 ;; Message-ID: <87vc913oh5....@yahoo.fr> (defun yf/org-electric-dollar nil "When called once, insert \\(\\) and leave point in between. When called twice, replace the previously inserted \\(\\) by one $." (interactive) (if (and (looking-at "\\\\)") (looking-back "\\\\(")) (progn (delete-char 2) (delete-char -2) (insert "$")) (insert "\\(\\)") (backward-char 2))) (define-key org-mode-map (kbd "$") 'yf/org-electric-dollar) #+end_src I've been using this for years now and it works very well: I also had $...$ in my muscle memory. The only time it can be annoying is if you wish to edit/write org table expressions directly instead of using org's features for this, such as editing the equation (C-c ') or inserting one (C-c = with or without C-u). -- : Eric S Fraga, with org release_9.5.2-306-g9623da in Emacs 29.0.50