;; 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
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.
+ )