dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

commit ce00be6621207786fac154dfe902df9fe670c7db
parent 27a3dc3f4f00044fe3534819009a0b3f43b30236
Author: rmj <pwishie@gmail.com>
Date:   Fri, 10 Apr 2020 22:45:03 -0700

simplify

Diffstat:
MREADME.org | 148-------------------------------------------------------------------------------
1 file changed, 0 insertions(+), 148 deletions(-)

diff --git a/README.org b/README.org @@ -12,151 +12,3 @@ The speconf.org file is the configuration for emacs on my desktop. It is strippe * dwm Look for my fork of dwm. -* Mail -I use mu for indexing / mu4e for my mail reading, isync for getting my mail, and msmtp for sending mail. - -#+BEGIN_SRC emacs-lisp - -(require 'org-mime) - - (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e/") - (require 'mu4e) - - (setq mu4e-maildir (expand-file-name "~/Maildir")) - - ; get mail - (setq mu4e-get-mail-command "mbsync pwishie-gmail" - ;; mu4e-html2text-command "w3m -T text/html" ;;using the default mu4e-shr2text - mu4e-view-prefer-html t - mu4e-update-interval 300 - mu4e-headers-auto-update t - mu4e-compose-signature-auto-include nil - mu4e-compose-format-flowed t) - - ;; to view selected message in the browser, no signin, just html mail - (add-to-list 'mu4e-view-actions - '("ViewInBrowser" . mu4e-action-view-in-browser) t) - - ;; enable inline images - (setq mu4e-view-show-images t) - ;; use imagemagick, if available - (when (fboundp 'imagemagick-register-types) - (imagemagick-register-types)) - - ;; every new email composition gets its own frame! - (setq mu4e-compose-in-new-frame t) - - ;; don't save message to Sent Messages, IMAP takes care of this - (setq mu4e-sent-messages-behavior 'delete) - - (add-hook 'mu4e-view-mode-hook #'visual-line-mode) - - ;; <tab> to navigate to links, <RET> to open them in browser - (add-hook 'mu4e-view-mode-hook - (lambda() - ;; try to emulate some of the eww key-bindings - (local-set-key (kbd "<RET>") 'mu4e~view-browse-url-from-binding) - (local-set-key (kbd "<tab>") 'shr-next-link) - (local-set-key (kbd "<backtab>") 'shr-previous-link))) - - ;; from https://www.reddit.com/r/emacs/comments/bfsck6/mu4e_for_dummies/elgoumx - (add-hook 'mu4e-headers-mode-hook - (defun my/mu4e-change-headers () - (interactive) - (setq mu4e-headers-fields - `((:human-date . 25) ;; alternatively, use :date - (:flags . 6) - (:from . 22) - (:thread-subject . ,(- (window-body-width) 70)) ;; alternatively, use :subject - (:size . 7))))) - - ;; if you use date instead of human-date in the above, use this setting - ;; give me ISO(ish) format date-time stamps in the header list - ;(setq mu4e-headers-date-format "%Y-%m-%d %H:%M") - - ;; spell check - (add-hook 'mu4e-compose-mode-hook - (defun my-do-compose-stuff () - "My settings for message composition." - (visual-line-mode) - ;(org-mu4e-compose-org-mode) - (use-hard-newlines -1) - (flyspell-mode))) - - (require 'smtpmail) - - ;;rename files when moving - ;;NEEDED FOR MBSYNC - (setq mu4e-change-filenames-when-moving t) - - ;;set up queue for offline email - ;;use mu mkdir ~/Maildir/acc/queue to set up first - (setq smtpmail-queue-mail nil) ;; start in normal mode - - ;;from the info manual - (setq mu4e-attachment-dir "~/Downloads") - - (setq message-kill-buffer-on-exit t) - (setq mu4e-compose-dont-reply-to-self t) - - (require 'org-mu4e) - - ;; convert org mode to HTML automatically - (setq org-mu4e-convert-to-html t) - - ;;from vxlabs config - ;; show full addresses in view message (instead of just names) - ;; toggle per name with M-RET - (setq mu4e-view-show-addresses 't) - - ;; don't ask when quitting - (setq mu4e-confirm-quit nil) - - (require 'smtpmail-multi) - - (require 'feedmail) - - ;; mu4e-context - (setq mu4e-context-policy 'pick-first) - (setq mu4e-compose-context-policy 'always-ask) - (setq mu4e-contexts - (list - (make-mu4e-context - :name "personal" ;;for pwishie-gmail - :enter-func (lambda () (mu4e-message "Entering context personal")) - :leave-func (lambda () (mu4e-message "Leaving context personal")) - :match-func (lambda (msg) - (when msg - (mu4e-message-contact-field-matches - msg '(:from :to :cc :bcc) "pwishie@gmail.com"))) - :vars '((user-mail-address . "pwishie@gmail.com") - (user-full-name . "Ryan") - (mu4e-sent-folder . "/pwishie-gmail/[pwishie].Sent Mail") - (mu4e-drafts-folder . "/pwishie-gmail/[pwishie].drafts") - (mu4e-trash-folder . "/pwishie-gmail/[pwishie].Bin") - (mu4e-compose-signature . (concat "Formal Signature\n" "Emacs 25, org-mode 9, mu4e 1.0\n")) - (mu4e-compose-format-flowed . t) - (smtpmail-queue-dir . "~/Maildir/pwishie-gmail/queue/cur") - (setq - message-send-mail-function 'message-send-mail-with-sendmail - sendmail-program "/usr/bin/msmtp" - user-full-name "Ryan Jeffrey") - - (setq message-sendmail-envelope-from 'header) - (add-hook 'message-send-mail-hook 'choose-msmtp-account) - (smtpmail-smtp-user . "pwishie") - (smtpmail-starttls-credentials . (("smtp.gmail.com" 587 nil nil))) - (smtpmail-auth-credentials . (expand-file-name "~/.emacs.d/.authinfo.gpg")) - (smtpmail-default-smtp-server . "smtp.gmail.com") - (smtpmail-smtp-server . "smtp.gmail.com") - (smtpmail-smtp-service . 587) - (smtpmail-debug-info . t) - (smtpmail-debug-verbose . t) - (mu4e-maildir-shortcuts . ( ("/pwishie-gmail/INBOX" . ?i) - ("/pwishie-gmail/[pwishie].Sent Mail" . ?s) - ("/pwishie-gmail/[pwishie].Bin" . ?t) - ("/pwishie-gmail/[pwishie].All Mail" . ?a) - ("/pwishie-gmail/[pwishie].Starred" . ?r) - ("/pwishie-gmail/[pwishie].drafts" . ?d))))))) -#+END_SRC -