Commit ff7d0f836b93

Vincent Demeester <vincent@sbr.pm>
2015-04-29 17:20:38
Load mu4e only if there is mails folders :P
1 parent 33e9612
Changed files (1)
.emacs.d
.emacs.d/emacs.org
@@ -2624,6 +2624,14 @@
 
 ** Mails
 
+   Don't load if not on a computer where there is mails.
+
+   #+BEGIN_SRC emacs-lisp
+     (defvar load-mail-setup (file-exists-p "~/desktop/mails/main"))
+     (when load-mail-setup
+   #+END_SRC
+
+
    Add mu4e to the load-path and load it.
 
    #+BEGIN_SRC emacs-lisp
@@ -2664,3 +2672,8 @@
      (add-to-list 'mu4e-view-actions '("retag" . mu4e-action-retag-message))
      (add-to-list 'mu4e-headers-actions '("retag" . mu4e-action-retag-message))
    #+END_SRC
+
+
+   #+BEGIN_SRC emacs-lisp
+     )
+   #+END_SRC