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

49 lines
1.4 KiB
Org Mode

#+title: Window Management Config
#+author: Evie Litherland-Smith
#+email: evie@xenia.me.uk
#+language: en
#+filetags: :emacs:config:org:
#+property: header-args:emacs-lisp :tangle yes :mkdirp yes :results output silent
#+begin_src emacs-lisp
(setq split-height-threshold nil
split-width-threshold 160)
#+end_src
* windmove
#+begin_src emacs-lisp
(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)))
#+end_src
* winner
#+begin_src emacs-lisp
(use-package winner
:demand
:bind (("C-c w u" . winner-undo)
("C-c w r" . winner-redo))
:config
(winner-mode))
#+end_src
* ediff
#+begin_src emacs-lisp :tangle yes
(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))
#+end_src