diff --git a/.emacs.d/mail.el b/.emacs.d/mail.el index c352464..825aa8c 100644 --- a/.emacs.d/mail.el +++ b/.emacs.d/mail.el @@ -1,8 +1,10 @@ (setq user-mail-address "thexcloud@gmail.com") (setq user-full-name "Pavel Korytov") -(let ((default-directory "/home/pavel/.guix-extra-profiles/mail/mail/share/emacs/site-lisp")) - (normal-top-level-add-subdirs-to-load-path)) +(let ((dir "/home/pavel/.guix-extra-profiles/mail/mail/share/emacs/site-lisp")) + (when (file-directory-p dir) + (let ((default-directory dir)) + (normal-top-level-add-subdirs-to-load-path)))) (defun my/notmuch-toggle-trash () (interactive) diff --git a/Mail.org b/Mail.org index a3f9275..b5c957b 100644 --- a/Mail.org +++ b/Mail.org @@ -85,9 +85,6 @@ I would use =password-store-get= from password-store.el, but I want this to be a pass show Job/Digital/Email/pvkorytov@etu.ru | sed -n 's/username: //;2p' #+end_src -#+RESULTS: mail-username -: pvkorytov - #+NAME: mail-password #+begin_src bash pass show Job/Digital/Email/pvkorytov@etu.ru | head -n 1 @@ -379,8 +376,10 @@ Finally, Emacs configuration. Let's start with some variables: Then, the problem with my Guix setup is that Emacs by default doesn't see the elisp files of notmuch, so here is a small workaround: #+begin_src emacs-lisp -(let ((default-directory "/home/pavel/.guix-extra-profiles/mail/mail/share/emacs/site-lisp")) - (normal-top-level-add-subdirs-to-load-path)) +(let ((dir "/home/pavel/.guix-extra-profiles/mail/mail/share/emacs/site-lisp")) + (when (file-directory-p dir) + (let ((default-directory dir)) + (normal-top-level-add-subdirs-to-load-path)))) #+end_src Some functions to toggle tags: