]> git.eshelyaron.com Git - emacs.git/commit
Support specifying just one command in project-switch-commands
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 7 Sep 2021 01:44:38 +0000 (04:44 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 7 Sep 2021 01:45:15 +0000 (04:45 +0300)
commitb52cafe49650f7b3398059e1655c77438b9cb125
tree2b805c6b2223cbd2165aefb1c4b20223779014c4
parente09e8271458cee4de517cfc11ebe5eb4918e156d
Support specifying just one command in project-switch-commands

* lisp/progmodes/project.el (project-switch-commands):
Describe the new possible type of value.
(project--switch-project-command):
New function, extract from project-switch-project.
(project-switch-project): If project-switch-commands's value is a
symbol, invoke that command without showing a menu.

Co-authored-by: Jiacai Liu <hello@liujiacai.net>
lisp/progmodes/project.el