From ac657449ad8f4cb6bb67f52089e9747bea62d10e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 14 Feb 2020 12:47:13 -0500 Subject: [PATCH] Tell which-key about nosetests keybinding --- emacs/init.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index fcc6cea..2da6ff9 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2646,6 +2646,12 @@ And borrowing some functions from python-pytest, we can get some nosetests suppo (general-def nosetests-map "m" #'nosetests-module) (general-def nosetests-map "f" #'nosetests-file) (general-def nosetests-map "d" #'nosetests-def) + + (add-hook 'python-mode-hook + (lambda () + (make-local-variable 'which-key-replacement-alist) + (which-key-add-key-based-replacements + "C-c t n" "nosetests"))) #+END_SRC * Hy