feat(emacs): org mode pairs

This commit is contained in:
2025-11-23 07:30:27 -07:00
parent b45a53c841
commit a9ad592ac1

View File

@@ -112,9 +112,9 @@
;; https://abode.karthinks.com/org-latex-preview/#org9054eb6 ;; https://abode.karthinks.com/org-latex-preview/#org9054eb6
:straight `(org :straight `(org
:fork (:host nil :fork (:host nil
:repo "https://git.tecosaur.net/tec/org-mode.git" :repo "https://git.tecosaur.net/tec/org-mode.git"
:branch "dev" :branch "dev"
:remote "tecosaur") :remote "tecosaur")
:files (:defaults "etc") :files (:defaults "etc")
:build t :build t
:pre-build :pre-build
@@ -253,7 +253,16 @@ All my (performant) foldings needs are met between this and `org-show-subtree'
(unless invisible-p (unless invisible-p
(setq org-cycle-subtree-status 'subtree)) (setq org-cycle-subtree-status 'subtree))
(org-cycle-internal-local) (org-cycle-internal-local)
t))))))) t))))))
(with-eval-after-load 'evil-surround
(syd-add-hook '(org-mode-hook)
(defun syd-org--configure-evil-surround-h ()
(setq-local evil-surround-pairs-alist
(append '((?* . ("*" . "*"))
(?/ . ("/" . "/"))
(?= . ("=" . "=")))
evil-surround-pairs-alist))))))
(use-package evil-org (use-package evil-org
:hook ((org-mode . evil-org-mode) :hook ((org-mode . evil-org-mode)