Skip to content

Commit

Permalink
Disable auto-pairing of "<" in org-mode (#129)
Browse files Browse the repository at this point in the history
* Disable auto-pairing of "<" in org-mode

Code adapted from https://emacs.stackexchange.com/questions/26225/dont-pair-quotes-in-electric-pair-mode

* Moved changes to `rational-org.el`

from `rational-completion.el`
  • Loading branch information
sthesing authored Apr 21, 2022
1 parent 146f634 commit c628f0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/rational-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@
(customize-set-variable 'org-hide-emphasis-markers t)
(add-hook 'org-mode-hook 'org-appear-mode)

;; disable auto-pairing of "<" in org-mode
(add-hook 'org-mode-hook (lambda ()
(setq-local electric-pair-inhibit-predicate
`(lambda (c)
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))

(provide 'rational-org)
;;; rational-org.el ends here

0 comments on commit c628f0f

Please sign in to comment.