iankelling.org
/
git
/
dot-emacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
659fc23
)
minor fixes
author
Ian Kelling
<iank@fsf.org>
Thu, 25 Jan 2018 22:37:09 +0000
(17:37 -0500)
committer
Ian Kelling
<iank@fsf.org>
Thu, 25 Jan 2018 22:37:09 +0000
(17:37 -0500)
my-init.org
patch
|
blob
|
history
diff --git
a/my-init.org
b/my-init.org
index 6dcb7f1d5fa54aaf710563413a932c6670543edb..d2e596fe31bdd4a7ecdd0b21a558055ae7cc7138 100644
(file)
--- a/
my-init.org
+++ b/
my-init.org
@@
-1040,11
+1040,14
@@
and Ian Kelling as the name"
;; on first run mkdir -p /nocow/user/.mufsf; mu index --maildir=/nocow/user/fsfmd
(defun mu-exit-wait ()
(interactive)
;; on first run mkdir -p /nocow/user/.mufsf; mu index --maildir=/nocow/user/fsfmd
(defun mu-exit-wait ()
(interactive)
- (let ((wait (= 0 (call-process "/bin/pidof" nil nil nil "mu"))))
+ ;; taken from the mu source
+ (let* ((buf (get-buffer mu4e~proc-name))
+ (proc (and (buffer-live-p buf) (get-buffer-process buf))))
(mu4e-quit)
;; without sleep, we get database locked by another process error when hitting u
;; if another mu was running.
(mu4e-quit)
;; without sleep, we get database locked by another process error when hitting u
;; if another mu was running.
- (when wait (sleep-for 0 300))))
+ (if proc (sleep-for 0 1000))))
+
(defun fsf-mu4e ()
(interactive)
(unless (equal mu4e-maildir "/nocow/user/fsfmd") (mu-exit-wait))
(defun fsf-mu4e ()
(interactive)
(unless (equal mu4e-maildir "/nocow/user/fsfmd") (mu-exit-wait))
@@
-1057,7
+1060,7
@@
and Ian Kelling as the name"
user-mail-address "iank@fsf.org"
mail-signature "
user-mail-address "iank@fsf.org"
mail-signature "
---
+--
Ian Kelling | Senior Systems Administrator, Free Software Foundation
GPG Key: B125 F60B 7B28 7FF6 A2B7 DF8F 170A F0E2 9542 95DF
https://fsf.org | https://gnu.org
Ian Kelling | Senior Systems Administrator, Free Software Foundation
GPG Key: B125 F60B 7B28 7FF6 A2B7 DF8F 170A F0E2 9542 95DF
https://fsf.org | https://gnu.org