all repos — nixfiles @ cfbd5020bc470a80438ccee8521e455d0409de58

System and user configuration, managed by nix and home-manager

Emacs: refactor toggle-window-dedicated

Alan Pearce
commit

cfbd5020bc470a80438ccee8521e455d0409de58

parent

05d58b13e4653693b5da49d01d0440747538b242

1 file changed, 5 insertions(+), 4 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1159,12 +1159,13 @@ (defun toggle-window-dedicated ()
"Toggle whether the current active window is dedicated or not" (interactive) (message - (if (let (window (get-buffer-window (current-buffer))) + "Window '%s' is %s" + (current-buffer) + (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))) + "dedicated" + "normal"))) (req-package popwin :if (and (>= emacs-major-version 24)