문제

How can I replace the ERC> prompt in every erc buffer so that it shows the name of the buffer instead?

For example if I'm in the #emacs channel, I have this:

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

While I'd like to have this:

   *** arall (~arall@128.205.23.161) has joined channel #emacs  [22:40]
    #emacs> 
도움이 되었습니까?

해결책

You can set variable erc-prompt to function that will return the current channel's name, something like:

(setq erc-prompt  (lambda () (concat (buffer-name) "> ")))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top