diff options
| author | 2026-08-26 12:23:17 -0700 | |
|---|---|---|
| committer | 2026-08-26 23:04:25 -0700 | |
| commit | 1695fd3a17a2b733e7d627f0e509662807f73c81 (patch) | |
| tree | 3fa6633390612b67e0585eb420206bfbb0ebb0ec | |
| parent | 46c27c5ff17ac1fce4f79da1037f76b71719a60d (diff) | |
| download | new-dotfiles-1695fd3a17a2b733e7d627f0e509662807f73c81.tar.gz new-dotfiles-1695fd3a17a2b733e7d627f0e509662807f73c81.zip | |
Emacs: Add golden ratio configuration
| -rw-r--r-- | emacs/.emacs.d/init.org | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 6931dc0..c8ac3df 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -973,3 +973,19 @@ This includes cape for extra completion-at-point functions, and corfu-prescient (use-package corfu-prescient :hook (corfu-mode)) #+end_src + +* Golden Ratio + +This package automatically adjusts your window sized to follow the golden ratio, so that the focused one is always the biggest. + +#+begin_src emacs-lisp + (use-package golden-ratio + :init + (golden-ratio-mode) + :config + (with-eval-after-load 'ace-window + (advice-add 'ace-window :after #'golden-ratio)) + (add-to-list 'golden-ratio-exclude-modes 'calculator-mode)) +#+end_src + +This configuration adds advice after the =ace-window= command to make sure that switching with it still properly configures the window sizes. |
