1

How do you hide columns when inside the ibuffer window?

I don't want to see

Size Mode Name

Sometimes I just want to see only the column Filename/Process

What I tried: googled ibuffer hide columns

1 Answer 1

3

You can modify the variable ibuffer-formats:

 (setq ibuffer-format-save ibuffer-formats)
 (setq ibuffer-formats (append ibuffer-formats '((mark " " filename-and-process))))

After this, the backtick character (which runs ibuffer-switch-format) forces redisplay and cycles through the formats specified. In my emacs, after running the above, there are now three formats in that cycle.

1
  • 2
    FWIW, I recommend including mark in every format, i.e. (mark " " filename-and-process) or similar, to reduce the risk of accidental mishaps.
    – Basil
    Dec 1, 2017 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.