mu-wizard

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

mu4e-config.el (1098B)


      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 (defvar mu4e-get-mail-command)
     17 (defvar mu4e-contexts)
     18 (defvar mu4e-sent-messages-behavior)
     19 
     20 (setq mu4e-get-mail-command       "mbsync -a"
     21       mail-user-agent             'mu4e-user-agent
     22       message-send-mail-function  'message-send-mail-with-sendmail
     23       sendmail-program            (executable-find "msmtp"))
     24 
     25 
     26 ;; Make mu4e-contexts an empty list.
     27 (setq mu4e-contexts ())
     28 
     29 ;; Load user accounts.
     30 (dolist (file (directory-files
     31                (expand-file-name "mu4e/accounts" (or (getenv "XDG_CONFIG_HOME") "~/.config")) t "\.el$" nil))
     32   (load file))
     33 
     34 (provide 'mu4e-config)
     35 ;;; mu4e-config.el ends here