将提示替换为ERC缓冲区中的缓冲区名称



如何在每个erc缓冲区中替换ERC>提示

例如,如果我在#emacs频道中,我有一个:

   *** arall (~arall@128.205.23.161) has joined channel #emacs  [22:40]   
   ERC> 

我想拥有这个:

   *** arall (~arall@128.205.23.161) has joined channel #emacs  [22:40]
    #emacs> 

您可以将变量erc-prompt设置为将返回当前频道名称的功能,例如:

(setq erc-prompt  (lambda () (concat (buffer-name) "> ")))

最新更新