From 3f9e62dab7511c5a94afb610001af4308668ac35 Mon Sep 17 00:00:00 2001 From: Antonio Ruiz Date: Wed, 31 Aug 2022 14:39:13 -0400 Subject: [PATCH] feat(notmuch): use a different workspace name The workspace name *notmuch* is more consistent with Doom's other app workspace names like *mu4e* and *rss*. --- modules/email/notmuch/autoload.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/email/notmuch/autoload.el b/modules/email/notmuch/autoload.el index 1856e8308..b804b5eef 100644 --- a/modules/email/notmuch/autoload.el +++ b/modules/email/notmuch/autoload.el @@ -1,5 +1,8 @@ ;;; email/notmuch/autoload.el -*- lexical-binding: t; -*- +(defvar +notmuch-workspace-name "*notmuch*" + "Name of the workspace created by `=notmuch', dedicated to notmuch.") + ;;;###autoload (defun =notmuch () "Activate (or switch to) `notmuch' in its workspace." @@ -7,7 +10,7 @@ (condition-case-unless-debug e (progn (when (modulep! :ui workspaces) - (+workspace-switch "*MAIL*" t)) + (+workspace-switch +notmuch-workspace-name t)) (if-let* ((win (cl-find-if (lambda (it) (string-match-p "^\\*notmuch" (buffer-name (window-buffer it)))) (doom-visible-windows)))) (select-window win)