A buffer can be renamed with rename-buffer command.

Is it possible to rename buffers from IBuffer?

A use case is to rename a bunch of Term buffers from Ibuffer.
The default name for Term buffers is *terminal*.

  • 1
    I couldn't find any command in ibuffer to rename a buffer to a specified name (R tries to give buffer an unique name, and that's the closest thing to it.) However, % m allows to mark by a regexp that matches the mode name, and * M marks all buffers with a specified major mode. It seems that rename-buffer isn't bound to anyhting in ibuffer, and without binding it yourself, you'd have to call it with M-x rename-buffer. – user12563 May 24 '17 at 15:15
  • 1
    See define-ibuffer-op and ibuffer-do-rename-uniquely. – politza May 24 '17 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.