Skip to content

Commit

Permalink
tweak(smartparens): several tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 11, 2024
1 parent 1e5a67e commit a27c957
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/me-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,17 @@
:straight t
:hook (minemacs-lazy . smartparens-global-mode)
:custom
(sp-ignore-modes-list '(minibuffer-inactive-mode)) ; Enable in `minibuffer-mode'
(sp-ignore-modes-list nil) ; Enable in `minibuffer-mode'
:config
(require 'smartparens-config)

;; In minibuffer, don't complete ' and `
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "'" nil :actions nil)
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "`" nil :actions nil)
(sp-local-pair 'org-mode "$" "$" :unless '(sp-point-after-word-p))
(require 'smartparens-config))

;; Silence some harmless but annoying echo-area spam
(dolist (key '(:unmatched-expression :no-matching-tag)) (setf (alist-get key sp-message-alist) nil)))


;; Your friendly neighborhood expand-region clone
Expand Down

0 comments on commit a27c957

Please sign in to comment.