mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

mu4e-config.el (1007B)


      1 ;;; mu4e-config.el -- Configuration Options for mu4e -*- lexical-binding: t -*-
      2 
      3 ;;; Commentary:
      4 ;; This is a template configuration for mu4e, the basic stuff.  This can be
      5 ;; called from the init.el by running
      6 ;;
      7 ;;     (load-file "~/.config/mu4e/mu4e-config.el")
      8 ;;
      9 ;; My knowledge of Lisp isn't great.  I have been using Emacs for a few months
     10 ;; and this is my first project including Lisp.  So please bear with me.  I
     11 ;; would be happy to receive PRs.
     12 
     13 ;;; Code:
     14 (require 'mu4e)
     15 
     16 (setq mu4e-get-mail-command       "mbsync -a"
     17       mail-user-agent             'mu4e-user-agent
     18       message-send-mail-function  'message-send-mail-with-sendmail
     19       sendmail-program            (executable-find "msmtp"))
     20 
     21 
     22 ;; Make mu4e-contexts an empty list.
     23 (setq mu4e-contexts nil)
     24 
     25 ;; Load user accounts.
     26 (dolist (file (directory-files
     27                (expand-file-name "mu4e/accounts" (or (getenv "XDG_CONFIG_HOME") "~/.config")) t "\.el$" nil))
     28   (load file))
     29 
     30 (provide 'mu4e-config)
     31 ;;; mu4e-config.el ends here