how to answer yes or no automatically in emacs

后端 未结 3 959
陌清茗
陌清茗 2021-02-20 06:43

I binded function semantic-symref to key C-c C-r like this:

(global-set-key (kbd \"C-c C-r\") \'semantic-symref)

everytime I pressed

3条回答
  •  不要未来只要你来
    2021-02-20 07:21

    You can advice semantic-symref with something like :

    (defadvice semantic-symref (around stfu activate)
          (flet ((yes-or-no-p (&rest args) t)
                 (y-or-n-p (&rest args) t))
            ad-do-it))
    

    Beware that you're locally bypassing all confirmations, so you may catch further (other) questions triggered by semantic-symref itself.

提交回复
热议问题