emacs/config/windows.org
Evie Litherland-Smith 8150864856 Clean out uses of use-package :ensure and :diminish
Stop using :ensure and manage installed package properly so that extra
packages can be easily tested and removed. Majority use case is on
NixOS anywhere where Emacs is only configuring - not installing - the
packages

Also stop using :diminish because I don't need it with doom-modeline
anyway...
2024-04-16 13:46:07 +01:00

1.4 KiB

Window Management Config

  (setq split-height-threshold nil
        split-width-threshold 160)

windmove

  (use-package windmove
    :demand
    :config (windmove-mode +1)
    :bind (("C-c w k" . windmove-up)
           ("C-c w C-k" . windmove-display-up)
           ("C-c w K" . windmove-swap-states-up)
           ("C-c w j" . windmove-down)
           ("C-c w C-j" . windmove-display-down)
           ("C-c w J" . windmove-swap-states-down)
           ("C-c w h" . windmove-left)
           ("C-c w C-h" . windmove-display-left)
           ("C-c w H" . windmove-swap-states-left)
           ("C-c w l" . windmove-right)
           ("C-c w C-l" . windmove-display-right)
           ("C-c w L" . windmove-swap-states-right)))

winner

  (use-package winner
    :demand
    :bind (("C-c w u" . winner-undo)
           ("C-c w r" . winner-redo))
    :config
    (winner-mode))

ediff

  (use-package ediff
    :bind (("C-c d f" . ediff-files)
           ("C-c d b" . ediff-buffers)
           ("C-c d 3 f" . ediff-files3)
           ("C-c d 3 b" . ediff-buffers3))
    :custom
    (ediff-window-setup-function #'ediff-setup-windows-plain))