Refactor localleader keybinds #1270

Introduces a select few of the localleader keybind standards proposed in
issue #1270, corrects a few typos and introduces more localleader
keybinds in general.

Co-authored-by: yuhan0 <>
This commit is contained in:
Henrik Lissner 2019-10-04 17:49:28 -04:00
parent fac6eabd72
commit 051bceb0a8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
13 changed files with 98 additions and 95 deletions

View file

@ -116,7 +116,7 @@ called.")
(add-hook 'anaconda-mode-hook #'evil-normalize-keymaps))
(map! :localleader
:map anaconda-mode-map
:prefix "f"
:prefix "g"
"d" #'anaconda-mode-find-definitions
"h" #'anaconda-mode-show-doc
"a" #'anaconda-mode-find-assignments
@ -131,10 +131,9 @@ called.")
:localleader
(:prefix ("i" . "imports")
:desc "Insert missing imports" "i" #'pyimport-insert-missing
:desc "Remove unused imports" "r" #'pyimport-remove-unused
:desc "Sort imports" "s" #'pyimpsort-buffer
:desc "Optimize imports" "o" #'+python/optimize-imports
)))
:desc "Remove unused imports" "r" #'pyimport-remove-unused
:desc "Sort imports" "s" #'pyimpsort-buffer
:desc "Optimize imports" "o" #'+python/optimize-imports)))
(use-package! nose
@ -165,11 +164,11 @@ called.")
(map! :after python
:localleader
:map python-mode-map
:prefix "t"
"f" #'python-pytest-file
"k" #'python-pytest-file-dwim
"t" #'python-pytest-function
"m" #'python-pytest-function-dwim
:prefix ("t" . "test")
"f" #'python-pytest-file-dwim
"F" #'python-pytest-file
"t" #'python-pytest-function-dwim
"T" #'python-pytest-function
"r" #'python-pytest-repeat
"p" #'python-pytest-popup))