summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/init.el b/init.el
index 3cf563b..643ee89 100644
--- a/init.el
+++ b/init.el
@@ -531,14 +531,6 @@
(line-number-mode -1)
(column-number-mode -1)
-;;;; jao-mode-line
-(defvar jao-mode-line-in-minibuffer (jao-is-linux))
-
-(use-package jao-mode-line
- :commands (jao-mode-line-add-to-minibuffer-left
- jao-mode-line-add-to-minibuffer-right
- jao-mode-line-remove-from-minibuffer))
-
;;;; time display
(setq world-clock-list
'(("Europe/London" "Edinburgh")
@@ -569,7 +561,12 @@
(seconds-to-time (/ v 1000.0))))))
;;;; mode line toggle
+(defvar jao-mode-line-in-minibuffer (jao-is-linux))
+
(use-package jao-mode-line
+ :commands (jao-mode-line-add-to-minibuffer-left
+ jao-mode-line-add-to-minibuffer-right
+ jao-mode-line-remove-from-minibuffer)
:init
(when (and window-system (not jao-mode-line-in-minibuffer))
(add-to-list 'after-make-frame-functions #'jao-mode-line-hide-inactive)
@@ -1687,7 +1684,7 @@
;;; Global transients
(defun jao-list-packages ()
(interactive)
- (jao-when-linux (jao-afio-goto-scratch))
+ (jao-afio-goto-scratch t)
(package-list-packages))
(defun jao-window-system-p ()
@@ -1714,6 +1711,10 @@
("/" "open note" jao-org-notes-open)
("\\" "open note by tags" jao-org-notes-consult-tags)
("g" "ripgrep notes" jao-org-notes-consult-ripgrep)]
+ ["Mode line"
+ ("ma" "toggle active" jao-mode-line-toggle)
+ ("mi" "toggle inactive" jao-mode-line-toggle-inactive)
+ ("mf" "readjust faces" jao-mode-line-adjust-faces)]
["Network"
("s" "ssh" jao-ssh)
("r" "r2e" jao-r2e)]