Emacs: Remove unused toggle-window-dedicated.

master
Pierre Neidhardt 2019-11-02 16:15:37 +01:00
parent 6e6b74dea7
commit c3f5fa236e
1 changed files with 0 additions and 14 deletions

View File

@ -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."