diff options
author | bd <bdunahu@colostate.edu> | 2024-03-09 20:19:50 -0700 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-03-09 20:19:50 -0700 |
commit | 443504c783443e568148bc467d740381deaf814c (patch) | |
tree | 9f28fe57aa1da33357eab9f8ff8ae9219e6b7eef /.config/emacs/modules/bd--essential-windowing.el | |
parent | 54884c3031769a51010d586d7d7d0248b62695e5 (diff) |
exwm -> dwm
Diffstat (limited to '.config/emacs/modules/bd--essential-windowing.el')
-rw-r--r-- | .config/emacs/modules/bd--essential-windowing.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/emacs/modules/bd--essential-windowing.el b/.config/emacs/modules/bd--essential-windowing.el index 9917a93..14b7065 100644 --- a/.config/emacs/modules/bd--essential-windowing.el +++ b/.config/emacs/modules/bd--essential-windowing.el @@ -14,6 +14,24 @@ ;; no fringe (fringe-mode '(0 . 0)) +(keymap-global-set "M-n" 'other-window) +(keymap-global-set "M-p" (lambda () + (interactive) + (other-window -1))) + + +;; dedication +(defun toggle-current-window-dedication () + "Adds or revokes dedicated window status from a buffer. A +dedicated buffer will never be automatically orphaned." + (interactive) + (let* ((window (selected-window)) + (dedicated (window-dedicated-p window))) + (set-window-dedicated-p window (not dedicated)) + (message "Window %sdedicated to %s" + (if dedicated "no longer " "") + (buffer-name)))) + ;; alpha (defun bd/clamp (lower-bound upper-bound value) (max lower-bound (min value upper-bound))) |