mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
feat(emacs): refactor for python-ts-mode
This commit is contained in:
parent
ca3d5c2b75
commit
804b4e8b7b
2 changed files with 3 additions and 3 deletions
|
|
@ -2538,7 +2538,7 @@ Returns (<buffer> . <workspace-index>) or nil."
|
||||||
:commands (py-isort-buffer py-isort-region))
|
:commands (py-isort-buffer py-isort-region))
|
||||||
|
|
||||||
(my-leader-def
|
(my-leader-def
|
||||||
:keymaps 'python-mode-map
|
:keymaps '(python-mode-map python-ts-mode-map)
|
||||||
"rr" (lambda ()
|
"rr" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
|
||||||
|
|
@ -3487,7 +3487,7 @@ References:
|
||||||
The following binding calls yapf & isort on the buffer
|
The following binding calls yapf & isort on the buffer
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(my-leader-def
|
(my-leader-def
|
||||||
:keymaps 'python-mode-map
|
:keymaps '(python-mode-map python-ts-mode-map)
|
||||||
"rr" (lambda ()
|
"rr" (lambda ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
@ -6428,7 +6428,7 @@ And advice to disable a function for TRAMP-related buffers:
|
||||||
(funcall fun dir)))
|
(funcall fun dir)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
=editorconfig= lovely package looks for the =.editorconfig= file in the file tree.
|
=editorconfig=. This lovely package looks for =.editorconfig= in the file tree.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(with-eval-after-load 'editorconfig
|
(with-eval-after-load 'editorconfig
|
||||||
(advice-add #'editorconfig-apply :around #'my/tramp-void-if-tramp)
|
(advice-add #'editorconfig-apply :around #'my/tramp-void-if-tramp)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue