Skip to content

Commit

Permalink
fix(elec-pair): disable auto-pairing of "<" in `org-mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
hmanhng authored and abougouffa committed Dec 24, 2023
1 parent f5a74cc commit ecb3675
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -1182,11 +1182,10 @@ current line.")
(defun +electric-pair-tweaks-h ()
;; Org mode tweaks
(with-eval-after-load 'elec-pair
(when (bound-and-true-p electric-pair-mode)
;; Disable auto-pairing of "<" in `org-mode' when using `electric-pair-mode'
(setq-local electric-pair-inhibit-predicate
`(lambda (char)
(if (char-equal char ?<) t (,electric-pair-inhibit-predicate char)))))
;; Disable auto-pairing of "<" in `org-mode' when using `electric-pair-mode'
(setq-local electric-pair-inhibit-predicate
`(lambda (char)
(if (char-equal char ?<) t (,electric-pair-inhibit-predicate char))))
(setq-local electric-pair-pairs (append electric-pair-pairs (alist-get major-mode +electric-pair-mode-pairs-alist)))))

(defvar +electric-pair-mode-pairs-alist
Expand Down

0 comments on commit ecb3675

Please sign in to comment.