Skip to main content
added 60 characters in body
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)
(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

That does not show buffers whose names begin with a space. If you really want to show all buffers, then try this instead:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))
(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))

(However, I agree with those who commented that this is a very useful thing to do.)

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

That does not show buffers whose names begin with a space. If you really want to show all buffers, then try this instead:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))

(However, I agree with those who commented that this is a very useful thing to do.)

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

That does not show buffers whose names begin with a space. If you really want to show all buffers, then try this instead:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))

(However, I agree with those who commented that this is a very useful thing to do.)

added 236 characters in body
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

Or ifThat does not show buffers whose names begin with a space. If you really want to show allall buffers, then try this instead:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))

However(However, I agree with those who commented that this is not soa very useful thing to do.)

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

Or if you really want to show all buffers:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda () (interactive) (list-buffers nil (buffer-list))))

However, I agree with those who commented that this is not so useful.

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

That does not show buffers whose names begin with a space. If you really want to show all buffers, then try this instead:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda ()
              (interactive)
              (display-buffer (list-buffers-noselect nil (buffer-list)))))

(However, I agree with those who commented that this is a very useful thing to do.)

Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

Try this:

(define-key mode-line-buffer-identification-keymap [mode-line mouse-3] 'list-buffers)

Or if you really want to show all buffers:

(define-key mode-line-buffer-identification-keymap
            [mode-line mouse-3]
            (lambda () (interactive) (list-buffers nil (buffer-list))))

However, I agree with those who commented that this is not so useful.