Is it possible to change the column width in an emacs
Ibuffer
on the fly?
Change the value of ibuffer-formats to what you want, then switch back to the ibuffer window and press 'g'. ibuffer-update
will notice the format change and do the right thing. C-h v ibuffer-formats RET
will bring up documentation for the variable.
Example:
(setq ibuffer-formats
'((mark modified read-only " "
(name 18 18 :left :elide) " "
(size 9 -1 :right) " "
(mode 16 16 :left :elide) " " filename-and-process)
(mark " " (name 16 -1) " " filename)))
You could put this into your .emacs file for easy modification later. If you wanted the name column to be wider, you would edit your .emacs file and change the 18's above into something else:
(setq ibuffer-formats
'((mark modified read-only " "
(name 30 30 :left :elide) " "
(size 9 -1 :right) " "
(mode 16 16 :left :elide) " " filename-and-process)
(mark " " (name 16 -1) " " filename)))
Then put the cursor on the line just after the above and type C-x C-e
to evaluate the (setq ...) expression and the value of ibuffer-formats
will be changed.