76

GitHub - clemera/buffer-expose: Visual buffer switching in Emacs using a window...

 5 years ago
source link: https://github.com/clemera/buffer-expose
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.org

Description

Visual buffer switching using a window grid:

./images/grid-3.png

Installation

For manual installation, clone the repository and call:

(package-install-file "/path/to/buffer-expose.el")

Config

To use the default bindings for switching buffers with buffer-expose use buffer-expose-mode:

(buffer-expose-mode 1)

The default bindings are defined in buffer-expose-mode-map:

(defvar buffer-expose-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "<s-tab>") 'buffer-expose)
    (define-key map (kbd "<C-tab>") 'buffer-expose-no-stars)
    (define-key map (kbd "C-c <C-tab>") 'buffer-expose-current-mode)
    (define-key map (kbd "C-c C-d") 'buffer-expose-dired-buffers)
    (define-key map (kbd "C-c C-*") 'buffer-expose-stars)
    map)
  "Mode map for command `buffer-expose-mode'.")

There are user options to customize which buffers are shown and you can easily write your own command, like this:

(defun my-expose-command (&optional max)
  (interactive "P")
  (buffer-expose-show-buffers <your-buffer-list> max))

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK