From 9f3d04e23160220382853a5c209ab9dc72d9af2e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 28 Oct 2023 11:14:27 +0100 Subject: [PATCH] Add wttr to emacs modeline --- home/emacs/modules/custom-ui-config.el | 4 ++++ system/emacs.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/home/emacs/modules/custom-ui-config.el b/home/emacs/modules/custom-ui-config.el index 1078a30f..ebd37587 100644 --- a/home/emacs/modules/custom-ui-config.el +++ b/home/emacs/modules/custom-ui-config.el @@ -55,6 +55,10 @@ (when (require 'which-key nil :noerror) (which-key-mode +1)) (when (require 'page-break nil :noerror) (global-page-break-lines-mode +1)) +;; Weather in modeline +(setq display-wttr-format 1) +(when (require 'display-wttr nil :noerror) (display-wttr-mode +1)) + ;;;; Help Buffers ;; Make `describe-*' screens more helpful diff --git a/system/emacs.nix b/system/emacs.nix index 7ef35de0..759003b7 100644 --- a/system/emacs.nix +++ b/system/emacs.nix @@ -65,6 +65,7 @@ helpful which-key link-hint + display-wttr # writing-packages pdf-tools