X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mymail-vm.el;h=d08583cd8a90a586c8c314603477740322e12e51;hb=2067ba7cc3ac7a412c2ba633cb71dc2ecfcb28ce;hp=840bd93026187344c4ce623ff506b8c72497f153;hpb=0b0531480a17cdf846eb03ae361e076a3840c93e;p=mymail.git diff --git a/mymail-vm.el b/mymail-vm.el index 840bd93..d08583c 100644 --- a/mymail-vm.el +++ b/mymail-vm.el @@ -21,10 +21,16 @@ ;; (add-to-list 'recentf-exclude "/tmp/mymail-vm-.*\.mbox") ;; ;; to your .emacs +;; +;; I also use +;; +;; (define-key vm-summary-mode-map "\\" 'mymail/vm-visit-folder) +;; +;; So that pressing "\" in the summary start a search with mymail (defgroup mymail () - "Command to visit a folder build on-the-fly with mymail" - :version "0.9.5") + "Command to visit a folder built on-the-fly with mymail" + :version "0.9.8") (defcustom mymail/default-additional-search-requests "" "Comma-separated list of search requests to add to any search" @@ -59,17 +65,16 @@ prefaced with \\." (mbox-name nil) (search-args - (apply 'nconc - (mapcar - (lambda (searche-request) - (if (not (string= searche-request "")) - (list "--search" searche-request))) - (if (string= (substring param 0 1) "\\") - (split-string (substring param 1 nil) ",") - (split-string (concat param "," mymail/default-additional-search-requests) ",")) - ))) - + (mapcar + (lambda (searche-request) + (if (not (string= searche-request "")) + (list "--search" searche-request))) + (if (string= (substring param 0 1) "\\") + (split-string (substring param 1 nil) ",") + (split-string (concat param "," + mymail/default-additional-search-requests) ",")) + ))) ) (while (get-file-buffer (setq mbox-name (format "/tmp/mymail-vm-%d.mbox" n))) @@ -83,4 +88,4 @@ prefaced with \\." 0) (vm-visit-folder mbox-name t) (message "mymail failed")) - )) + ))