From: Ramakrishnan Muthukrishnan Date: Fri, 18 Sep 2015 06:05:32 +0000 (+0530) Subject: notmuch, email config X-Git-Url: https://git.rkrishnan.org/simplejson/components/(%5B%5E?a=commitdiff_plain;h=6948bd69554446e6623493d35d065fde20e23c00;p=.emacs.d.git notmuch, email config --- diff --git a/init.el b/init.el index acca250..c050049 100644 --- a/init.el +++ b/init.el @@ -22,7 +22,16 @@ ;; 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) @@ -105,10 +115,7 @@ (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 @@ -131,8 +138,7 @@ (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) @@ -188,3 +194,32 @@ ;; 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. + )