From 686ff8fa2fb5b6cd655834f3af5cd234feef8918 Mon Sep 17 00:00:00 2001 From: jao Date: Sun, 28 Aug 2022 20:55:21 +0100 Subject: afio: option to use frames (for terminals) and cleanups galore --- custom/jao-custom-completion.el | 3 +-- custom/jao-custom-notmuch.el | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'custom') diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el index 0c67fbb..0682b44 100644 --- a/custom/jao-custom-completion.el +++ b/custom/jao-custom-completion.el @@ -273,8 +273,7 @@ (defun jao-consult-initial-narrow () (when-let (c (cond ((eq this-command #'consult-buffer) - (cdr (assoc (jao-afio-current-frame) - jao-consult-narrow))) + (cdr (assoc (jao-afio-frame-name) jao-consult-narrow))) ((eq this-command #'consult-mode-command) ?m))) (setq unread-command-events (append unread-command-events `(,c 32))))) diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el index 86555d1..a374ebd 100644 --- a/custom/jao-custom-notmuch.el +++ b/custom/jao-custom-notmuch.el @@ -271,7 +271,7 @@ (defun jao-notmuch-refresh-hello (&optional agenda) (interactive "P") (ignore-errors - (when (and (string= "Mail" (jao-afio-current-frame)) + (when (and (string= "Mail" (jao-afio-frame-name)) (derived-mode-p 'notmuch-hello-mode)) (when (not (string-blank-p jao-notmuch-minibuffer-string)) (let ((notmuch-hello-auto-refresh nil)) (notmuch-hello))) -- cgit v1.2.3