]> git.cworth.org Git - notmuch/blobdiff - emacs/notmuch-hello.el
emacs: Make saving new saved searches append, not prepend
[notmuch] / emacs / notmuch-hello.el
index 917ad3bbe4e8ea45a8f52790021bee661842514a..0582cae76f492fc1ab349ab4458e889b2ea576ae 100644 (file)
@@ -188,8 +188,8 @@ Typically \",\" in the US and UK and \".\" in Europe."
                collect elem))
     ;; Add the new one.
     (customize-save-variable 'notmuch-saved-searches
-                            (push (cons name search)
-                                  notmuch-saved-searches))
+                            (add-to-list 'notmuch-saved-searches
+                                         (cons name search) t))
     (message "Saved '%s' as '%s'." search name)
     (notmuch-hello-update)))