From 804b4e8b7b665e2e79045d5b73abd02cf00e4129 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Thu, 12 Oct 2023 15:16:33 +0300 Subject: [PATCH] feat(emacs): refactor for python-ts-mode --- .emacs.d/init.el | 2 +- Emacs.org | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f3559ac..23d4313 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2538,7 +2538,7 @@ Returns ( . ) or nil." :commands (py-isort-buffer py-isort-region)) (my-leader-def - :keymaps 'python-mode-map + :keymaps '(python-mode-map python-ts-mode-map) "rr" (lambda () (interactive) (save-excursion diff --git a/Emacs.org b/Emacs.org index 52b855c..91980ac 100644 --- a/Emacs.org +++ b/Emacs.org @@ -3487,7 +3487,7 @@ References: The following binding calls yapf & isort on the buffer #+begin_src emacs-lisp (my-leader-def - :keymaps 'python-mode-map + :keymaps '(python-mode-map python-ts-mode-map) "rr" (lambda () (interactive) (save-excursion @@ -6428,7 +6428,7 @@ And advice to disable a function for TRAMP-related buffers: (funcall fun dir))) #+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 (with-eval-after-load 'editorconfig (advice-add #'editorconfig-apply :around #'my/tramp-void-if-tramp)