move mu4e back into init.el

This commit is contained in:
Ivan Malison 2014-12-09 01:47:39 -08:00
parent 334482e1a4
commit eecd210e51
2 changed files with 66 additions and 60 deletions

66
init.el
View File

@ -566,6 +566,7 @@ The current directory is assumed to be the project's root otherwise."
(use-package org-projectile :ensure t) (use-package org-projectile :ensure t)
(setq org-habit-graph-column 50) (setq org-habit-graph-column 50)
(setq org-habit-show-habits-only-for-today t) (setq org-habit-show-habits-only-for-today t)
(setq org-lowest-priority 69)
(unless (boundp 'org-gtd-file) (unless (boundp 'org-gtd-file)
(defvar org-gtd-file "~/org/gtd.org")) (defvar org-gtd-file "~/org/gtd.org"))
(unless (boundp 'org-habits-file) (unless (boundp 'org-habits-file)
@ -701,6 +702,68 @@ The current directory is assumed to be the project's root otherwise."
(progn (progn
(use-package erc-colorize :ensure t) (erc-colorize-mode 1))) (use-package erc-colorize :ensure t) (erc-colorize-mode 1)))
(use-package s :ensure t)
(add-to-list 'load-path (s-trim (shell-command-to-string "mu4e_directory")))
(use-package mu4e
:commands mu4e
:config
(progn
(setq mu4e-compose-complete-only-after nil)
(setq mu4e-maildir "~/Mail")
(setq mu4e-drafts-folder "/[Gmail].Drafts")
(setq mu4e-sent-folder "/[Gmail].Sent Mail")
(setq mu4e-trash-folder "/[Gmail].Trash")
;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``
;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")
;; show images
(setq mu4e-show-images t)
(add-hook 'mu4e-compose-mode-hook
(defun my-do-compose-stuff () (flyspell-mode)))
(setq mu4e-update-interval (* 60 20))
;; ;; something about ourselves
;; (setq
;; mu4e-compose-signature
;; (concat
;; "Foo X. Bar\n"
;; "http://www.example.com\n"))
;; sending mail -- replace USERNAME with your gmail username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu
(require 'smtpmail)
;; (setq message-send-mail-function 'smtpmail-send-it
;; starttls-use-gnutls t
;; smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
;; smtpmail-auth-credentials
;; '(("smtp.gmail.com" 587 "USERNAME@gmail.com" nil))
;; smtpmail-default-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-service 587)
;; alternatively, for emacs-24 you can use:
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-stream-type 'starttls
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)
;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)))
(use-package sauron (use-package sauron
:ensure t :ensure t
:commands (sauron-start sauron-start-hidden) :commands (sauron-start sauron-start-hidden)
@ -865,6 +928,9 @@ The current directory is assumed to be the project's root otherwise."
(setq edebug-trace t) (setq edebug-trace t)
(use-package paredit
:ensure t)
(use-package elisp-slime-nav (use-package elisp-slime-nav
:ensure t :ensure t
:commands elisp-slime-nav-mode :commands elisp-slime-nav-mode

View File

@ -1,60 +0,0 @@
(use-package s :ensure t)
(add-to-list 'load-path (s-trim (shell-command-to-string "mu4e_directory")))
(use-package mu4e
:commands mu4e
:config
(progn
(setq mu4e-compose-complete-only-after nil)
(setq mu4e-maildir "~/Mail")
(setq mu4e-drafts-folder "/[Gmail].Drafts")
(setq mu4e-sent-folder "/[Gmail].Sent Mail")
(setq mu4e-trash-folder "/[Gmail].Trash")
;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``
;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")
;; show images
(setq mu4e-show-images t)
(add-hook 'mu4e-compose-mode-hook
(defun my-do-compose-stuff () (flyspell-mode)))
(setq mu4e-update-interval (* 60 20))
;; ;; something about ourselves
;; (setq
;; mu4e-compose-signature
;; (concat
;; "Foo X. Bar\n"
;; "http://www.example.com\n"))
;; sending mail -- replace USERNAME with your gmail username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu
(require 'smtpmail)
;; (setq message-send-mail-function 'smtpmail-send-it
;; starttls-use-gnutls t
;; smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
;; smtpmail-auth-credentials
;; '(("smtp.gmail.com" 587 "USERNAME@gmail.com" nil))
;; smtpmail-default-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-server "smtp.gmail.com"
;; smtpmail-smtp-service 587)
;; alternatively, for emacs-24 you can use:
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-stream-type 'starttls
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)
;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)))