Use which-key-add-major-mode instead of hook-based approach
This commit is contained in:
parent
f7cdd5c37d
commit
b631c35a26
@ -2692,11 +2692,8 @@ And borrowing some functions from python-pytest, we can get some nosetests suppo
|
|||||||
(general-def nosetests-map "f" #'nosetests-file)
|
(general-def nosetests-map "f" #'nosetests-file)
|
||||||
(general-def nosetests-map "d" #'nosetests-def)
|
(general-def nosetests-map "d" #'nosetests-def)
|
||||||
|
|
||||||
(add-hook 'python-mode-hook
|
(which-key-add-major-mode-key-based-replacements
|
||||||
(lambda ()
|
'python-mode "C-c t n" "nosetests")
|
||||||
(make-local-variable 'which-key-replacement-alist)
|
|
||||||
(which-key-add-key-based-replacements
|
|
||||||
"C-c t n" "nosetests")))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Hy
|
* Hy
|
||||||
|
Loading…
Reference in New Issue
Block a user