summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-notmuch.el6
-rw-r--r--init.el4
2 files changed, 5 insertions, 5 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 47fe63a..2a48e3b 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -266,7 +266,7 @@
(defun jao-notmuch-refresh-agenda ()
(interactive)
- (save-window-excursion (jao-org-agenda)))
+ (save-window-excursion (calendar) (jao-org-agenda)))
(defun jao-notmuch-hello-first ()
(interactive)
@@ -282,9 +282,7 @@
(when (not (string-blank-p jao-notmuch-minibuffer-string))
(let ((notmuch-hello-auto-refresh nil)) (notmuch-hello)))
(let ((jao-minibuffer-inhibit t))
- (save-window-excursion
- (calendar)
- (when agenda (jao-org-agenda))))
+ (when agenda (jao-notmuch-refresh-agenda)))
(unless (widget-at) (jao-notmuch-hello-first))
(jao-minibuffer-refresh))))
diff --git a/init.el b/init.el
index cea0d2a..7801d5e 100644
--- a/init.el
+++ b/init.el
@@ -2972,7 +2972,9 @@
(lambda ()
(message "%s %s"
(if (jao-mpc-mopidy-p) "mopidy" "mpd")
- (jao-mpc--current-timestr t))
+ (if (jao-mpc-playing-p)
+ (jao-mpc--current-timestr t)
+ (jao-mpc--current-str)))
(format "Master %s%%" (jao-mixer-get-level nil t)))
("d" "down" jao-mixer-master-down :transient t)
("u" "up" jao-mixer-master-up :transient t)