;;;###autoload
(defun copilot-accept-or-forward ()
"Accept copilot completion or jumps"
- (interactive)
+ (interactive "^")
(or (copilot-accept-completion)
(doom/forward-to-last-non-comment-or-eol)))
interactive
文档提示
If the string begins with ^ and shift-select-mode is non-nil,
Emacs first calls the function handle-shift-selection.