找不到 magit-define-popup-option
magit-define-popup-option not found
在某些时候,我设法向 magit pull 弹出窗口添加了一个选项。
这一行最终出现在我的 .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)
您不能在函数定义之前调用它。
(with-eval-after-load "magit-commit"
(magit-define-popup-option 'magit-commit-popup
?D "Override the author date" "--date=" #'read-from-minibuffer))
n.b。 "magit-popup"
是定义 magit-define-popup-option
函数的库,但我假设您只想在加载 "magit-commit"
之后执行此操作(此时您特别感兴趣的弹出窗口已经定义)。
在某些时候,我设法向 magit pull 弹出窗口添加了一个选项。
这一行最终出现在我的 .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)
您不能在函数定义之前调用它。
(with-eval-after-load "magit-commit"
(magit-define-popup-option 'magit-commit-popup
?D "Override the author date" "--date=" #'read-from-minibuffer))
n.b。 "magit-popup"
是定义 magit-define-popup-option
函数的库,但我假设您只想在加载 "magit-commit"
之后执行此操作(此时您特别感兴趣的弹出窗口已经定义)。