0

How to change the buffer name in emacs to any given string? Useful if one has many shell buffers for various specific tasks and is merely seeing their order of creation.

zendevil.eth
  • 151
  • 2
  • 3
    Does this answer your question? [how to name buffers (\*shell\*)](https://emacs.stackexchange.com/questions/32385/how-to-name-buffers-shell) – Drew Jun 25 '20 at 15:02
  • Ask Emacs: `C-h f rename TAB` or `apropos buffer rename`. – Drew Jun 25 '20 at 15:03

1 Answers1

2

In this particular case, C-u M-x shell helps by giving each shell buffer a unique name, using a counter that increments every time.

If you want to give them more meaningful names, M-x rename-buffer RET foo RET will do the deed.

NickD
  • 27,023
  • 3
  • 23
  • 42