From f2bb217e06843b692a07cdcb35c7de7887317047 Mon Sep 17 00:00:00 2001 From: Vedang Manerikar <ved.manerikar@gmail.com> Date: Sat, 23 Nov 2024 09:42:00 +0530 Subject: [PATCH] Copy zone and time settings from my el-get config --- unravel-emacs.org | 24 ++++++++++++++++++++++++ unravel-modules/unravel-window.el | 11 +++++++++++ 2 files changed, 35 insertions(+) diff --git a/unravel-emacs.org b/unravel-emacs.org index 8e97d18..aaaeebd 100644 --- a/unravel-emacs.org +++ b/unravel-emacs.org @@ -3116,6 +3116,30 @@ leads to the current heading. Same idea for programming modes. Neat! (breadcrumb-local-mode 1)))) #+end_src +** The =unravel-window.el= section for Zone (~zone~) + +#+begin_src emacs-lisp :tangle "unravel-modules/unravel-window.el" + (use-package zone + :ensure nil + :config + (zone-when-idle 300)) +#+end_src + +** The =unravel-window.el= section for displaying time +:PROPERTIES: +:CUSTOM_ID: h:8E669AD7-D3BC-4168-AFAD-C6D4A25AF860 +:END: + +I like being able to see the time in the modeline. + +#+begin_src emacs-lisp :tangle "unravel-modules/unravel-window.el" + (use-package time + :ensure nil + :config + (setq display-time-day-and-date t) + (display-time)) +#+end_src + ** Finally, we provide the =unravel-window.el= module :PROPERTIES: :CUSTOM_ID: h:2124c200-734d-49c4-aeb1-513caaf957ae diff --git a/unravel-modules/unravel-window.el b/unravel-modules/unravel-window.el index fbad347..db864f6 100644 --- a/unravel-modules/unravel-window.el +++ b/unravel-modules/unravel-window.el @@ -159,4 +159,15 @@ With optional argument FRAME, return the list of buffers of FRAME." (("C-x <right>" . winner-redo) ("C-x <left>" . winner-undo))) +(use-package zone + :ensure nil + :config + (zone-when-idle 300)) + +(use-package time + :ensure nil + :config + (setq display-time-day-and-date t) + (display-time)) + (provide 'unravel-window)