Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clemera/buffer-expose
Visual buffer switching in Emacs using a window grid
https://github.com/clemera/buffer-expose
Last synced: 27 days ago
JSON representation
Visual buffer switching in Emacs using a window grid
- Host: GitHub
- URL: https://github.com/clemera/buffer-expose
- Owner: clemera
- Created: 2019-02-22T13:49:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T13:56:09.000Z (over 5 years ago)
- Last Synced: 2024-11-22T21:46:11.238Z (about 2 months ago)
- Language: Emacs Lisp
- Size: 485 KB
- Stars: 171
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Description
Visual buffer switching using a window grid ([[https://github.com/abo-abo/ace-window][ace-window ]]key hints are optional):
[[./images/grid-aw.png]]
* Installation
For manual installation, clone the repository and call:
#+BEGIN_SRC elisp
(package-install-file "/path/to/buffer-expose.el")
#+END_SRC* Config
To use the default bindings for switching buffers with buffer-expose
use buffer-expose-mode:#+BEGIN_SRC elisp
(buffer-expose-mode 1)
#+END_SRCThe default bindings are defined in buffer-expose-mode-map:
#+BEGIN_SRC elisp
(defvar buffer-expose-mode-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "") 'buffer-expose)
(define-key map (kbd "") 'buffer-expose-no-stars)
(define-key map (kbd "C-c ") 'buffer-expose-current-mode)
(define-key map (kbd "C-c C-m") 'buffer-expose-major-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'.")
#+END_SRCThere are user options to customize which buffers are shown and you can easily
write your own command, like this:#+BEGIN_SRC elisp
(defun my-expose-command (&optional max)
(interactive "P")
(buffer-expose-show-buffers
max [ ]))
#+END_SRC