home · contact · privacy
Minor fixes to Firefox setup.
[config] / buster / home_files / user_eeepc / .emacs.d / init.el
index f289d9215035d01f692495279576f3328e674a21..31a4dcba29e16a2cb2a8fa6d04789f6bf5dcd3af 100644 (file)
                          ("melpa-unstable" . "https://melpa.org/packages/")
                          ("melpa-stable" . "https://stable.melpa.org/packages/")))
 
-;; by default, packages are only loaded after the init file; by loading them
-;; earlier, the call to evil-mode below is made possible
-(package-initialize)
+;; ensure certain packages are installed (actually, we use Debian repos here)
+;; credit to <https://stackoverflow.com/a/10093312>
+;(setq package-list '(elfeed ledger-mode))
+;(package-initialize)
+;(dolist (package package-list)
+;  (unless (package-installed-p package)
+;    (package-install package)))
 
 
 
 
 
 
+;; mail setup
+;; ==========
+
+(setq send-mail-function 'smtpmail-send-it)
+(setq smtpmail-smtp-server "core.plomlompom.com")
+(setq smtpmail-smtp-service 465)
+(setq smtpmail-stream-type 'ssl)
+(setq smtpmail-smtp-user "plom")
+(setq mml-secure-openpgp-encrypt-to-self t)
+(add-hook 'message-setup-hook 'mml-secure-sign-pgpmime)
+
+;; constructs From: domain if mail composer directly called (from without
+;; notmuch), but we don't actually intend to do that
+;(setq mail-host-address "plomlompom.com")
+
+;; otherwise notmuch becomes extremely slow in some cases
+(setq-default notmuch-show-indent-content nil)
+
+;; this only works if we use notmuch-mua-send instead of message-send
+(setq notmuch-fcc-dirs '(("plom@plomlompom.com" . "maildir/Sent")))
+
+;; this gets rid of "i-did-not-set--mail-host-address--so-tickle-me"
+;; in the message ID
+(setq mail-host-address "plomlompom.com")
+
 ;; org mode
 ;; ========
 
 (setq conf-mode-map (make-sparse-keymap))
 (setq sh-mode-map (make-sparse-keymap))
 (setq python-mode-map (make-sparse-keymap))
-
-
-;;; evil mode
-;;; =========
-;
-;;; start in normal mode everywhere
-;(setq evil-emacs-state-modes nil)
-;(setq evil-insert-state-modes nil)
-;(setq evil-motion-state-modes nil)
-;
-;;; enable evil at end so it can overlay its keybindings over any other packages
-;(evil-mode t)