Emacs really wants us to defvar each variable before assigning to it,
(which gives us a place to document the variable as well).
(defun notmuch-folder-count (search)
(car (process-lines notmuch-command "count" search)))
-(setq notmuch-folder-show-empty t)
+(defvar notmuch-folder-show-empty t
+ "Whether `notmuch-folder-mode' should display empty folders.")
(defun notmuch-folder-show-empty-toggle ()
"Toggle the listing of empty folders"