[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 65db8b88aa 06/95: Added a constant to hold th
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 65db8b88aa 06/95: Added a constant to hold the golden ratio value. |
Date: |
Thu, 7 Sep 2023 22:02:09 -0400 (EDT) |
branch: elpa/golden-ratio
commit 65db8b88aaeb2df5f58f45432be5ed42a8aa421b
Author: Diego Sevilla Ruiz <dsevilla@ditec.um.es>
Commit: Diego Sevilla Ruiz <dsevilla@ditec.um.es>
Added a constant to hold the golden ratio value.
And changed the code to use it.
---
golden-ratio.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index 639fc9faa9..3511a213f7 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -14,9 +14,12 @@
;;; Code:
+(defconst -golden-ratio-value 1.618
+ "The golden ratio value itself.")
+
(defun -golden-ratio-dimensions ()
- (let* ((main-rows (floor (/ (frame-height) 1.618)))
- (main-columns (floor (/ (frame-width) 1.618))))
+ (let* ((main-rows (floor (/ (frame-height) -golden-ratio-value)))
+ (main-columns (floor (/ (frame-width) -golden-ratio-value))))
(list main-rows
main-columns)))
- [nongnu] elpa/golden-ratio e0f783dfa7 01/95: First commit of golden-ratio.el, (continued)
- [nongnu] elpa/golden-ratio e0f783dfa7 01/95: First commit of golden-ratio.el, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 972eb4d7d6 03/95: Updating gif url on README, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 38305ca407 07/95: Adds dependency on cl, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 55bc7ccb67 09/95: Wraps cl requirement in an eval-when-compile clause, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 8a1214c453 04/95: Adding extra condition for golden-ratio, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0f42738fb9 05/95: Adding "emacs package standards" to golden-ratio.el, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 44565934da 10/95: Merge branch 'arcanis', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 351fe5f8f1 12/95: Removing error messages on minibuffer and full height/width windows, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f5b3602b5d 17/95: Merge branch '0.0.4', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio bb4afe59b2 08/95: Merge pull request #3 from dsevilla/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 65db8b88aa 06/95: Added a constant to hold the golden ratio value.,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio 0517fc134a 11/95: Replacing `window-absolute-pixel-edges` in favor of `window-pixel-edges`, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio cb8ff0bdb0 13/95: Bumping to version 0.0.3, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ed24985e10 14/95: Fix MELPA footer., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0508acbd20 15/95: Merge pull request #12 from zane/melpa, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 6af760274b 16/95: Fixing several bugs at once, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ff8ade7d35 19/95: Merge branch 'release/with-exemption-support', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7504957a7a 23/95: Merge pull request #19 from deftsp/inhabit-func, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 2d1553431c 25/95: Merge pull request #22 from Fuco1/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio c028a68645 26/95: Initial cleanup., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d7c433c655 27/95: (golden-ratio--resize-window): Fix, it is not a cond but when twice., ELPA Syncer, 2023/09/07