summaryrefslogtreecommitdiff
path: root/config.el
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-08-24 18:46:04 +0200
committercashmere <cashmere@autistici.org>2026-08-24 18:46:04 +0200
commit353cf218845182b7e0a274977089103f4da98606 (patch)
treea2d6b6cbecfd7966763fd47f9834597765e39403 /config.el
parent5aa60edd4386a4930d0c44b03a626f7d9263ac48 (diff)
downloademacs-353cf218845182b7e0a274977089103f4da98606.tar.gz
2026-08-24T18:46:06+02:00
Diffstat (limited to 'config.el')
-rw-r--r--config.el44
1 files changed, 41 insertions, 3 deletions
diff --git a/config.el b/config.el
index a533040..0691272 100644
--- a/config.el
+++ b/config.el
@@ -2766,11 +2766,34 @@ so the working-tree diff stays visible until the user explicitly stages."
(display-time-mode 1)
+(defvar my/mode-line--format
+ (or (default-value 'mode-line-format)
+ (eval (car (get 'mode-line-format 'standard-value)) t))
+ "The format restored when the bottom mode line is visible.")
+
+(define-minor-mode my/global-mode-line-mode
+ "Show the traditional bottom mode line in regular buffers."
+ :global t
+ :init-value t
+ :group 'mode-line
+ (setq-default mode-line-format
+ (and my/global-mode-line-mode my/mode-line--format))
+ (force-mode-line-update t))
+
+(defun my/hide-mode-line ()
+ "Toggle the traditional bottom mode line globally."
+ (interactive)
+ (my/global-mode-line-mode (if my/global-mode-line-mode -1 1)))
+
+;; The custom header line already carries the status information, so keep the
+;; traditional bottom mode line hidden on startup (including `emacs -nw').
+(my/global-mode-line-mode -1)
+
(use-package mode-line-maker
:ensure (:host github :repo "rougier/mode-line-maker")
:config
- (require 'my-mode-line)
- (my/mode-line-install))
+ (require 'my-header-line)
+ (my/header-line-install))
(use-package adaptive-wrap
:ensure t
@@ -2911,6 +2934,16 @@ so the working-tree diff stays visible until the user explicitly stages."
:after textui
:commands (fossil-ui fossil-ui-status))
+(use-package bbs-ui
+ :ensure nil
+ :after textui
+ :commands (bbs bbs-open)
+ :custom
+ (bbs-ui-repository-file
+ (expand-file-name "bbs-sandbox.fossil" "/home/cashmere/bbs/"))
+ (bbs-ui-web-base-url "https://bbs.copland.systems")
+ (bbs-ui-pull-on-open nil))
+
(use-package yggdrasil-ui
:ensure nil
:after textui
@@ -4135,7 +4168,7 @@ reset is unnecessary, so do the handler resolution ourselves and skip
:ensure t
:after mu4e
:custom
- (mu4e-alert-modeline-formatter #'my/mode-line-mu4e-formatter)
+ (mu4e-alert-modeline-formatter #'my/header-line-mu4e-formatter)
:config
;; Use libnotify for desktop notifications (notify-send / swaync)
(mu4e-alert-set-default-style 'libnotify)
@@ -4611,4 +4644,9 @@ opening another file in same project does not re-notify."
:files ("*.el"))
:commands (org-other-agenda))
+(use-package org-clock-reminder
+ :ensure (:host github :repo "inickey/org-clock-reminder")
+ :config
+ (org-clock-reminder-mode))
+
(provide 'init)