diff options
| author | bd <bdunahu@operationnull.com> | 2025-12-13 23:43:10 -0500 |
|---|---|---|
| committer | bdunahu <bdunahu@operationnull.com> | 2026-01-03 21:46:06 -0700 |
| commit | 288ccb3984c7cb46b67d0f6bf7fb6d53c5d7a2d3 (patch) | |
| tree | 47091f5aeede90e1364546e8122cd55e6d7f2971 /.config/emacs/modules/bd--window.el | |
| parent | df14036eb22ff9326c2806eb3f8cafc0d3042efa (diff) | |
guix: full refactor of configuration structure
Diffstat (limited to '.config/emacs/modules/bd--window.el')
| -rw-r--r-- | .config/emacs/modules/bd--window.el | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/.config/emacs/modules/bd--window.el b/.config/emacs/modules/bd--window.el deleted file mode 100644 index bdc173b..0000000 --- a/.config/emacs/modules/bd--window.el +++ /dev/null @@ -1,59 +0,0 @@ -;;; -*- lexical-binding: t; -*- -;;; Commentary: -;;; Code: - - -(require 'transient) - -(setopt switch-to-buffer-obey-display-actions t - switch-to-buffer-in-dedicated-window 'pop) -;; C-u C-h a ^display-buffer-[^-] -(add-to-list 'display-buffer-alist - '("^\\*Async Shell Command\\*.*$" - (display-buffer-no-window))) - -(defun bd/layout--do-with-haste (f) - (let* ((args (transient-args 'bd/layout-dispatcher)) - (haste (if (member "haste" args) 3 1))) - (funcall f haste))) -(transient-define-prefix bd/layout-dispatcher () - ["Dispatcher > Layout\n" - ["Infixes" - ("s" "haste" "haste")]] - [["Commands" - ("-" "text decrease" - (lambda () (interactive) (bd/layout--do-with-haste #'text-scale-decrease)) - :transient t) - ("=" "text increase" - (lambda () (interactive) (bd/layout--do-with-haste #'text-scale-increase)) - :transient t) - ("b" "narrow" - (lambda () (interactive) (bd/layout--do-with-haste #'shrink-window-horizontally)) - :transient t) - ("f" "widen" - (lambda () (interactive) (bd/layout--do-with-haste #'enlarge-window-horizontally)) - :transient t) - ("p" "shrink" - (lambda () (interactive) (bd/layout--do-with-haste #'shrink-window)) - :transient t) - ("n" "enlarge" - (lambda () (interactive) (bd/layout--do-with-haste #'enlarge-window)) - :transient t) - ("|" "balance" balance-windows)] - ["" - ("N" "shift down" windmove-swap-states-down :transient t) - ("P" "shift up" windmove-swap-states-up :transient t) - ("F" "shift right" windmove-swap-states-right :transient t) - ("B" "shift left" windmove-swap-states-left :transient t)] - ["" - ("a" "alpha" bd/set-frame-alpha) - ("w" "wallpaper" bd/set-bg) - ("t" "theme" load-theme)] - ["" - ("z" "widen gaps" exwm-outer-gaps-increment :transient t) - ("x" "shrink gaps" exwm-outer-gaps-decrement :transient t)]]) -(keymap-global-set "C-c w" #'bd/layout-dispatcher) - - -(provide 'bd--window) -;;; bd--window.el ends here |
