Emacs: Remove unused toggle-window-dedicated.
parent
6e6b74dea7
commit
c3f5fa236e
|
@ -317,20 +317,6 @@ configuration was previously save, restore that configuration."
|
|||
(setq single-window--last-configuration (current-window-configuration))
|
||||
(delete-other-windows)))
|
||||
|
||||
(defun ambrevar/toggle-window-dedicated ()
|
||||
"Toggle whether the current active window is dedicated or not.
|
||||
Run it in each window you want to 'freeze', i.e. prevent Emacs
|
||||
from acting on it."
|
||||
(interactive)
|
||||
(message
|
||||
(if (let ((window (get-buffer-window (current-buffer))))
|
||||
(set-window-dedicated-p window
|
||||
(not (window-dedicated-p window))))
|
||||
"Window '%s' is dedicated"
|
||||
"Window '%s' is normal")
|
||||
(current-buffer)))
|
||||
(global-set-key (kbd "<pause>") 'ambrevar/toggle-window-dedicated)
|
||||
|
||||
(defun ambrevar/toggle-window-split ()
|
||||
"Switch between vertical and horizontal split.
|
||||
It only works for frames with exactly two windows."
|
||||
|
|
Loading…
Reference in New Issue