Add function to create a named window config
Personally, I never have any unnamed window configurations so every time I create a new window config I am renaming it immediately after that. It is both - too many unnecessary keystrokes, and thinking of this (in my head) _atomic_ operation as a sequence of two low-level steps. This wrapper over `eyebrowse-create-window-config` and `eyebrowse-rename-window-config` fits perfectly.
This commit is contained in:
committed by
Vasilij Schneidermann
parent
6ed94a985f
commit
bdc626f88a
10
eyebrowse.el
10
eyebrowse.el
@ -561,6 +561,16 @@ The specific behaviour is tmux-like."
|
||||
(slot (eyebrowse-free-slot slots)))
|
||||
(eyebrowse-switch-to-window-config slot)))
|
||||
|
||||
(defun eyebrowse-create-named-window-config ()
|
||||
"Creates a window config at a yet unoccupied slot.
|
||||
User is prompted to provide a tag name, so the window config is
|
||||
created named."
|
||||
(interactive)
|
||||
(eyebrowse-create-window-config)
|
||||
(eyebrowse-rename-window-config
|
||||
(eyebrowse--get 'current-slot)
|
||||
(read-string "Tag: ")))
|
||||
|
||||
(defvar evil-motion-state-map)
|
||||
|
||||
;;;###autoload
|
||||
|
||||
Reference in New Issue
Block a user