-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak(editor): make
smartparens
obsolete
- Loading branch information
1 parent
94b31d6
commit 64a3601
Showing
2 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(use-package smartparens | ||
:straight t | ||
:hook (minemacs-after-startup . smartparens-global-mode) | ||
:init | ||
;; From Doom Emacs, disable expensive navigation features. | ||
(+setq-hook! smartparens-mode | ||
sp-navigate-skip-match nil | ||
sp-navigate-consider-sgml-tags nil) | ||
:config | ||
(sp-local-pair 'org-mode "$" "$" :unless '(sp-point-after-word-p)) | ||
(with-eval-after-load 'evil-mc | ||
;; Make evil-mc cooperate with smartparens better | ||
(let ((vars (cdr (assq :default evil-mc-cursor-variables)))) | ||
(unless (memq (car sp--mc/cursor-specific-vars) vars) | ||
(setcdr (assq :default evil-mc-cursor-variables) (append vars sp--mc/cursor-specific-vars)))))) | ||
|
||
;; Default `smartparens' configuration (for example, do not complete a single | ||
;; quote) | ||
(use-package smartparens-config | ||
:after smartparens | ||
:demand t) |