Reversible C-x 1
This commit is contained in:
parent
99a4578a44
commit
e6c71ce69c
1 changed files with 10 additions and 1 deletions
|
|
@ -199,7 +199,16 @@
|
|||
(use-package emacs
|
||||
:ensure nil
|
||||
:demand t
|
||||
:bind (("<C-wheel-up>" . ignore)
|
||||
:preface
|
||||
(defun to/toggle-delete-other-windows ()
|
||||
"Delete other windows, or restore the previous window configuration."
|
||||
(interactive)
|
||||
(if (and winner-mode
|
||||
(one-window-p t))
|
||||
(winner-undo)
|
||||
(delete-other-windows)))
|
||||
:bind (("C-x 1" . to/toggle-delete-other-windows)
|
||||
("<C-wheel-up>" . ignore)
|
||||
("<C-wheel-down>" . ignore)
|
||||
("<pinch>" . ignore))
|
||||
:config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue