在某种程度上,我设法在magit弹出窗口中添加了一个选项。
这一行在我的.emacs中结束了(我相信它在某种程度上是有效的):
(magit-define-popup-option 'magit-pull-popup
?s "recurse submodules" "--recurse-submodules=yes")现在我明白了:
eval: Symbol’s function definition is void: magit-define-popup-option这个调用在我看来是正确的,根据:https://github.com/magit/magit/wiki/Additional-proposed-infix-arguments-and-suffix-commands
(magit-define-popup-option 'magit-commit-popup
?D "Override the author date" "--date=" #'read-from-minibuffer)发布于 2019-01-10 11:32:54
在定义函数之前,不能调用该函数。
(with-eval-after-load "magit-commit"
(magit-define-popup-option 'magit-commit-popup
?D "Override the author date" "--date=" #'read-from-minibuffer))注:"magit-popup"是定义magit-define-popup-option函数的库,但我假设您只想在加载"magit-commit"之后执行此操作(此时您特别感兴趣的弹出窗口已经定义)。
https://stackoverflow.com/questions/54114000
复制相似问题