diff --git a/.config/emacs/config.el b/.config/emacs/config.el index 5088ee7..8edf7d0 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -499,6 +499,13 @@ doom-modeline-persp-name t ;; adds perspective name to modeline doom-modeline-persp-icon t)) ;; adds folder icon next to persp name +(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e") +(require 'mu4e) +(load-file "~/nc/emacs-stuff/email-mu4e.el") + +;; The command used to get your emails (adapt this line, see section 2.3): +(setq mu4e-get-mail-command "mbsync --config ~/.config/emacs/.mbsyncrc distrotube") + (use-package neotree :config (setq neo-smart-open t diff --git a/.config/emacs/config.org b/.config/emacs/config.org index def11e0..545aeae 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -32,6 +32,7 @@ - [[#language-support][LANGUAGE SUPPORT]] - [[#minibuffer-escape][MINIBUFFER ESCAPE]] - [[#modeline][MODELINE]] +- [[#mu4e-email][MU4E EMAIL]] - [[#neotree][NEOTREE]] - [[#org-mode][ORG MODE]] - [[#diminish-org-indent-mode][Diminish Org Indent Mode]] @@ -691,6 +692,21 @@ The modeline is the bottom status bar that appears in Emacs windows. While you #+end_src +* MU4E EMAIL +=mu4e= is the email client in Emacs. It requires that 'mu' and 'isync' be installed on your Linux system. Here is a great tutorial about setting up mu4e: https://f-santos.gitlab.io/2020-04-24-mu4e.html + +NOTE For privacy reasons, I'm importing all of my mu4e settings from a separate file which is not public. + +#+begin_src emacs-lisp +(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e") +(require 'mu4e) +(load-file "~/nc/emacs-stuff/email-mu4e.el") + +;; The command used to get your emails (adapt this line, see section 2.3): +(setq mu4e-get-mail-command "mbsync --config ~/.config/emacs/.mbsyncrc distrotube") + +#+end_src + * NEOTREE Neotree is a file tree viewer. When you open neotree, it jumps to the current file thanks to neo-smart-open. The neo-window-fixed-size setting makes the neotree width be adjustable. NeoTree provides following themes: classic, ascii, arrow, icons, and nerd. Theme can be config'd by setting "two" themes for neo-theme: one for the GUI and one for the terminal. I like to use 'SPC t' for 'toggle' keybindings, so I have used 'SPC t n' for toggle-neotree. diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 8e8e7c8..d5fd26d 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -8,7 +8,10 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-safe-themes - '("02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "6945dadc749ac5cbd47012cad836f92aea9ebec9f504d32fe89a956260773ca4" "944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "1f669e8abe4dc2855268c9a607b5e350e2811b3c5afd09af5939ff0c01a89c5a" default))) + '("02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "6945dadc749ac5cbd47012cad836f92aea9ebec9f504d32fe89a956260773ca4" "944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "1f669e8abe4dc2855268c9a607b5e350e2811b3c5afd09af5939ff0c01a89c5a" default)) + '(send-mail-function 'smtpmail-send-it) + '(smtpmail-smtp-server "smtp.1and1.com") + '(smtpmail-smtp-service 587)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.