Split window management config into own file

This commit is contained in:
Evie Litherland-Smith 2024-03-19 09:21:52 +00:00
parent 3e30503856
commit c9cc568ca6
2 changed files with 52 additions and 48 deletions

View file

@ -147,54 +147,6 @@ Removed in favour of [[https://github.com/catppuccin/emacs][Catppuccin (emacs)]]
cleanup
auto-cleanup)))
#+end_src
* Window management
#+begin_src emacs-lisp
(setq split-height-threshold nil
split-width-threshold 120)
#+end_src
** windmove
#+begin_src emacs-lisp
(use-package windmove
:ensure t
:demand
:diminish
: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
:ensure t
:demand
:diminish
: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
:ensure t
:diminish
: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
* Notifications
#+begin_src emacs-lisp
(use-package alert

52
config/windows.org Normal file
View file

@ -0,0 +1,52 @@
#+title: Window Management Config
#+author: Evie Litherland-Smith
#+email: evie@xenia.me.uk
#+language: en
#+begin_src emacs-lisp
(setq split-height-threshold nil
split-width-threshold 120)
#+end_src
* windmove
#+begin_src emacs-lisp
(use-package windmove
:ensure t
:demand
:diminish
: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
:ensure t
:demand
:diminish
: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
:ensure t
:diminish
: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