sync mail func
This commit is contained in:
parent
915432e6cf
commit
a6b1206cf9
|
|
@ -17,6 +17,17 @@
|
|||
user-mail-address "me@lkn.uber.space"
|
||||
user-full-name "Levi Neely")
|
||||
|
||||
(defun sync-and-index-mail ()
|
||||
"Synchronize mail using mbsync and index with notmuch."
|
||||
(interactive)
|
||||
(let ((default-directory "~/"))
|
||||
(message "Syncing mail...")
|
||||
(shell-command "mbsync uberspace >/dev/null")
|
||||
(message "Indexing mail...")
|
||||
(shell-command "notmuch new >/dev/null")
|
||||
(message "Mail sync and indexing completed.")))
|
||||
|
||||
(global-set-key (kbd "C-x M") 'sync-and-index-mail)
|
||||
|
||||
(provide 'module-notmuch)
|
||||
;;; module-qt.el ends here.
|
||||
|
|
|
|||
Loading…
Reference in New Issue