我想用 C-ü 在函数(例如,regexp)中调用它 C-ü 有不同的效果。我怎么能在Emacs中做到这一点?该文档没有说明如何使用Emacs Lisp执行此操作。
(defun test ()
(interactive)
(align-regexp)) ; I would like to add the C-u prefix to this.
我想用 C-ü 在函数(例如,regexp)中调用它 C-ü 有不同的效果。我怎么能在Emacs中做到这一点?该文档没有说明如何使用Emacs Lisp执行此操作。
(defun test ()
(interactive)
(align-regexp)) ; I would like to add the C-u prefix to this.
(defun my/test ()
(interactive)
(let ((current-prefix-arg 4)) ;; emulate C-u
(call-interactively 'align-regexp) ;; invoke align-regexp interactively
)
)
希望有所帮助。
(defun my/test ()
(interactive)
(let ((current-prefix-arg 4)) ;; emulate C-u
(call-interactively 'align-regexp) ;; invoke align-regexp interactively
)
)
希望有所帮助。