I'm planning to rip out the notmuch-folder-mode completely. So as a
token kindness to existing users of notmuch-folders, I'm at least
making notmuch-hello support the notmuch-folders variable name as an
alternate for the new name of notmuch-saved-searches.
(defvar notmuch-hello-indent 4
"How much to indent non-headers.")
(defvar notmuch-hello-indent 4
"How much to indent non-headers.")
-(defcustom notmuch-saved-searches notmuch-folders
+(defcustom notmuch-saved-searches nil
"A list of saved searches to display."
:type '(alist :key-type string :value-type string)
:group 'notmuch)
"A list of saved searches to display."
:type '(alist :key-type string :value-type string)
:group 'notmuch)
(defun notmuch-hello (&optional no-display)
(interactive)
(defun notmuch-hello (&optional no-display)
(interactive)
+ ;; Provide support for the deprecated name of this variable
+ (if (not notmuch-saved-searches)
+ (setq notmuch-saved-searches notmuch-folders))
+
+ ;; And set a default if neither has been set by the user
+ (if (not notmuch-saved-searches)
+ (setq notmuch-saved-searches '(("inbox" . "tag:inbox")
+ ("unread" . "tag:unread"))))
+
(if no-display
(set-buffer "*notmuch-hello*")
(switch-to-buffer "*notmuch-hello*"))
(if no-display
(set-buffer "*notmuch-hello*")
(switch-to-buffer "*notmuch-hello*"))