Minor refactor/reformatting
This commit is contained in:
parent
9185da824c
commit
d21887149f
4 changed files with 11 additions and 12 deletions
|
@ -297,7 +297,7 @@ savehist file."
|
||||||
|
|
||||||
(def-package! ws-butler
|
(def-package! ws-butler
|
||||||
;; a less intrusive `delete-trailing-whitespaces' on save
|
;; a less intrusive `delete-trailing-whitespaces' on save
|
||||||
:after-call (after-find-file)
|
:after-call (after-find-file)
|
||||||
:config
|
:config
|
||||||
(setq ws-butler-global-exempt-modes
|
(setq ws-butler-global-exempt-modes
|
||||||
(append ws-butler-global-exempt-modes
|
(append ws-butler-global-exempt-modes
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
:config
|
:config
|
||||||
(add-to-list 'company-frontends 'company-tng-frontend)
|
(add-to-list 'company-frontends 'company-tng-frontend)
|
||||||
(define-key! company-active-map
|
(define-key! company-active-map
|
||||||
[return] nil
|
[return] nil
|
||||||
[tab] #'company-select-next
|
[tab] #'company-select-next
|
||||||
[backtab] #'company-select-previous))
|
[backtab] #'company-select-previous))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -17,10 +17,9 @@
|
||||||
:definition #'sly-edit-definition
|
:definition #'sly-edit-definition
|
||||||
:documentation #'sly-describe-symbol)
|
:documentation #'sly-describe-symbol)
|
||||||
|
|
||||||
(after! smartparens
|
(sp-with-modes '(sly-mrepl-mode)
|
||||||
(sp-with-modes '(sly-mrepl-mode)
|
(sp-local-pair "'" "'" :actions :rem)
|
||||||
(sp-local-pair "'" "'" :actions nil)
|
(sp-local-pair "`" "`" :actions :rem))
|
||||||
(sp-local-pair "`" "`" :actions nil)))
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(defun +common-lisp|cleanup-sly-maybe ()
|
(defun +common-lisp|cleanup-sly-maybe ()
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
:return "return" :yield "yield")
|
:return "return" :yield "yield")
|
||||||
|
|
||||||
(define-key python-mode-map (kbd "DEL") nil) ; interferes with smartparens
|
(define-key python-mode-map (kbd "DEL") nil) ; interferes with smartparens
|
||||||
(sp-with-modes 'python-mode
|
(sp-local-pair 'python-mode "'" nil
|
||||||
(sp-local-pair "'" nil :unless '(sp-point-before-word-p
|
:unless '(sp-point-before-word-p
|
||||||
sp-point-after-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)
|
(setq-hook! 'python-mode-hook tab-width python-indent-offset)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue