From 3712c888b7c2956a2348177ffc6e816481d63591 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 12 Oct 2023 17:03:21 -0700 Subject: Add golden-ratio to Emacs configuration --- oni/packages/emacs.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'oni/packages') diff --git a/oni/packages/emacs.scm b/oni/packages/emacs.scm index 9d488e4..ad6ee92 100644 --- a/oni/packages/emacs.scm +++ b/oni/packages/emacs.scm @@ -444,3 +444,31 @@ new-theme for a while. I couldn't think of a name so I named it after him.") (description "This package provides an Emacs-based interface to the Notmuch mail system."))) + +(define-public emacs-golden-ratio + (let ((commit "375c9f287dfad68829582c1e0a67d0c18119dab9") + (revision "0")) + (package + (name "emacs-golden-ratio") + (version (git-version "1.0.0" revision commit)) + (source + (origin + (uri (git-reference + (url "https://github.com/roman/golden-ratio.el.git") + (commit commit))) + (method git-fetch) + (file-name (git-file-name name version)) + (sha256 + (base32 "0a635a3h6jx0clgwmhwc48i14y3xy5q29y37lp2sjnbxx1hlmkli")))) + (build-system emacs-build-system) + (home-page "https://github.com/roman/golden-ratio.el") + (synopsis "Automatic resizing of Emacs windows to the golden ratio") + (description "When working with many windows at the same time, each window has a size that is +not convenient for editing. + +golden-ratio helps on this issue by resizing automatically the windows you are +working on to the size specified in the \"Golden Ratio\". The window that has +the main focus will have the perfect size for editing, while the ones that are +not being actively edited will be re-sized to a smaller size that doesn't get in +the way, but at the same time will be readable enough to know it's content.") + (license license:expat)))) -- cgit v1.2.3-54-g00ecf