From 95eaeb775c3a9cbafb6f27147eecb68bc201c0c8 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sun, 14 Jul 2024 22:47:35 +0000 Subject: Always show calendar in a wide window --- config.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config.org b/config.org index 4e05b66..8a77071 100644 --- a/config.org +++ b/config.org @@ -276,6 +276,27 @@ Update the calendar. We want weeks to start on a monday, the first day of the w calendar-date-style 'iso) #+end_src +Ensure the calendar always displays at the bottom of the screen, rather than wrapping weirdly and looking bad when it shows up in a side window. + +#+begin_src elisp + (add-to-list 'display-buffer-alist + '("\\*Calendar\\*" + (display-buffer-in-side-window) + (side . bottom))) +#+end_src + +The default for this is eight, and i hoped that by setting it to nine there would never be a jump when there were extra weeks in a month and the calendar took up an extra line. It doesn't seem to have worked out that way, though. + +#+begin_src elisp + (setopt calendar-minimum-window-height 9) +#+end_src + +Don't add anything to the mode line. + +#+begin_src elisp + (setopt calendar-mode-line-format nil) +#+end_src + *** Monospace font fallback This is my own version of fixed-pitch, which has some changes to it. No hooks are added by default. Updating the whitelist automatically applies the hooks. And there is no functionality for changing the cursor type. -- cgit 1.4.1-2-gfad0