diff options
| author | cashmere <cashmere@autistici.org> | 2026-08-24 18:46:04 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-08-24 18:46:04 +0200 |
| commit | 353cf218845182b7e0a274977089103f4da98606 (patch) | |
| tree | a2d6b6cbecfd7966763fd47f9834597765e39403 /config.org | |
| parent | 5aa60edd4386a4930d0c44b03a626f7d9263ac48 (diff) | |
| download | emacs-353cf218845182b7e0a274977089103f4da98606.tar.gz | |
2026-08-24T18:46:06+02:00
Diffstat (limited to 'config.org')
| -rw-r--r-- | config.org | 46 |
1 files changed, 41 insertions, 5 deletions
@@ -3341,21 +3341,48 @@ Native =undo-redo= (via =evil-undo-system='undo-redo=); just raise the undo limi (dirvish-directory-view-mode . diredfl-mode))) #+end_src -* modelines +* header and mode lines ** display-time #+begin_src emacs-lisp (display-time-mode 1) #+end_src -** mode-line-maker +** mode-line + +#+begin_src emacs-lisp +(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) +#+end_src + +** header-line #+begin_src emacs-lisp (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)) #+end_src * soph @@ -4982,7 +5009,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) @@ -5538,6 +5565,15 @@ opening another file in same project does not re-notify." :commands (org-other-agenda)) #+end_src +* org-clock-reminder + +#+begin_src emacs-lisp +(use-package org-clock-reminder + :ensure (:host github :repo "inickey/org-clock-reminder") + :config + (org-clock-reminder-mode)) +#+end_src + * provide init #+begin_src emacs-lisp |
