notmuch, email config
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 18 Sep 2015 06:05:32 +0000 (11:35 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 18 Sep 2015 06:05:32 +0000 (11:35 +0530)
init.el

diff --git a/init.el b/init.el
index acca2502164a419c7c50f7aa85e41d80b58ebb74..c0500495d0eba40d9ed0f55e8c5a070669cd000b 100644 (file)
--- a/init.el
+++ b/init.el
 ;; This is bound to f11 in Emacs 24.4
 ;; (toggle-frame-fullscreen)
 (custom-set-variables
- '(initial-frame-alist (quote ((fullscreen . maximized)))))
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(haskell-process-auto-import-loaded-modules t)
+ '(haskell-process-log t)
+ '(haskell-process-suggest-remove-import-lines t)
+ '(haskell-process-type (quote cabal-repl))
+ '(initial-frame-alist (quote ((fullscreen . maximized))))
+ '(send-mail-function (quote smtpmail-send-it)))
 ;; Who use the bar to scroll?
 (when (display-graphic-p)
   (progn
@@ -52,7 +61,8 @@
                      tangotango-theme
                      fill-column-indicator
                      paredit
-                     leuven-theme))
+                     leuven-theme
+                     notmuch))
 
 ; install the missing packages
 (dolist (package package-list)
 (require 'haskell-process)
 (add-hook 'haskell-mode-hook 'interactive-haskell-mode)
 
-(custom-set-variables
-  '(haskell-process-suggest-remove-import-lines t)
-  '(haskell-process-auto-import-loaded-modules t)
-  '(haskell-process-log t))
+
 
 (eval-after-load "haskell-mode"
   '(progn
 (autoload 'ghc-debug "ghc" nil t)
 (setq ghc-debug t)
 (add-hook 'haskell-mode-hook (lambda () (ghc-init)))
-(custom-set-variables
-  '(haskell-process-type 'cabal-repl))
+
 
 ;; ido
 (setq ido-enable-flex-matching t)
 
 ;; turn off electric-indent-mode
 (when (fboundp 'electric-indent-mode) (electric-indent-mode -1))
+
+;; notmuch
+(setq mail-user-agent 'message-user-agent)
+(setq user-mail-address "ram@rkrishnan.org"
+      user-full-name "Ramakrishnan Muthukrishnan")
+
+;; smtp
+(setq smtpmail-stream-type 'ssl
+      smtpmail-smtp-server "mail.messagingengine.com"
+      smtpmail-smtp-service 465)
+
+;; addressbook
+(require 'notmuch-address)
+(setq notmuch-address-command "/usr/bin/notmuch-addrlookup")
+(notmuch-address-message-insinuate)
+
+(require 'smtpmail)
+(setq message-send-mail-function 'smtpmail-send-it)
+(require 'starttls)
+
+;; sign all emails
+(add-hook 'message-setup-hook 'mml-secure-message-sign-pgp)
+
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )