mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Minor refactor/reformatting
This commit is contained in:
@ -17,10 +17,9 @@
|
||||
:definition #'sly-edit-definition
|
||||
:documentation #'sly-describe-symbol)
|
||||
|
||||
(after! smartparens
|
||||
(sp-with-modes '(sly-mrepl-mode)
|
||||
(sp-local-pair "'" "'" :actions nil)
|
||||
(sp-local-pair "`" "`" :actions nil)))
|
||||
(sp-local-pair "'" "'" :actions :rem)
|
||||
(sp-local-pair "`" "`" :actions :rem))
|
||||
|
||||
;;
|
||||
(defun +common-lisp|cleanup-sly-maybe ()
|
||||
|
@ -39,10 +39,10 @@
|
||||
:return "return" :yield "yield")
|
||||
|
||||
(define-key python-mode-map (kbd "DEL") nil) ; interferes with smartparens
|
||||
(sp-with-modes 'python-mode
|
||||
(sp-local-pair "'" nil :unless '(sp-point-before-word-p
|
||||
(sp-local-pair 'python-mode "'" nil
|
||||
:unless '(sp-point-before-word-p
|
||||
sp-point-after-word-p
|
||||
sp-point-before-same-p)))
|
||||
sp-point-before-same-p))
|
||||
|
||||
(setq-hook! 'python-mode-hook tab-width python-indent-offset)
|
||||
|
||||
|
Reference in New Issue
Block a user