8000 GitHub - linktohack/predictable: Display buffers in a predictable way
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

linktohack/predictable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Commentary

A set of display-buffer actions to display buffers in a predictable way, to be used with display-buffer-alist and some helpers to manage windows & tabs

Example

(add-to-list 'display-buffer-alist
             `(,(rx bot (or "*Help*" "*helpful" "*info*"))
               (,(predictable-reuse-some-window (buf)
                                                (->> buf
                                                     (buffer-name)
                                                     (string-match-p (rx bot (or "*Help" "*helpful" "*info*")))))
                display-buffer-pop-up-window
                predictable-reuse-largest-window)
               (inhibit-same-window . t)))

Code

predictable-close-others
  Command: Close other tabs
predictable-close-to-the-left
  Command: Close other tabs to the left
predictable-close-to-the-right
  Command: Close other tabs to the left
predictable-close-with-window-maybe
  Function: Close tab, delete window when the last tab closed.
predictable-reuse-largest-window
  Function: Display ‘buffer’ on the largest window.
predictable-reuse-some-window
  Macro: Factory to create a display-buffer action that attempts to
predictable-toggle-dedicated
  Command: Toggles window dedication of the selected window.

LICENSE

GPL

About

Display buffers in a predictable way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0