如何替换每个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>
答案 0 :(得分:3)
您可以将变量erc-prompt
设置为将返回当前频道名称的函数,例如:
(setq erc-prompt (lambda () (concat (buffer-name) "> ")))