changelog shortlog graph tags branches files raw help

Mercurial > core / changeset: custom user config

changeset 37: 3e0f16905ee5
parent 36: 1fb6bb4f5c2f
child 38: a4186c03d6cf
author: ellis <ellis@rwest.io>
date: Mon, 06 Nov 2023 22:02:20 -0500
files: emacs/ellis.el
description: custom user config
     1.1--- a/emacs/ellis.el	Sun Nov 05 01:14:37 2023 -0400
     1.2+++ b/emacs/ellis.el	Mon Nov 06 22:02:20 2023 -0500
     1.3@@ -24,6 +24,78 @@
     1.4 
     1.5 ;;; Code:
     1.6 (setopt default-theme 'modus-vivendi-tinted)
     1.7+
     1.8 (enable-paredit-mode)
     1.9 (repeat-mode)
    1.10+
    1.11+(use-package notmuch 
    1.12+  :ensure t
    1.13+  :custom 
    1.14+  notmuch-init-file "~/.notmuch-config"
    1.15+  mail-user-agent 'message-user-agent
    1.16+  smtpmail-smtp-server "smtp.gmail.com"
    1.17+  message-send-mail-function 'message-smtpmail-send-it
    1.18+  smtpmail-debug-info t
    1.19+  message-default-mail-headers "Cc: \nBcc: \n"
    1.20+  message-kill-buffer-on-exit t
    1.21+  user-mail-address "ellis@rwest.io"
    1.22+  user-full-name "Richard Westhaver"
    1.23+  :config
    1.24+  ;;;###autoload
    1.25+  (defun notmuch-exec-offlineimap ()
    1.26+    "execute offlineimap command and tag new mail with notmuch"
    1.27+    (interactive)
    1.28+    (start-process-shell-command "offlineimap"
    1.29+                                 "*offlineimap*"
    1.30+                                 "offlineimap -o")
    1.31+    (notmuch-refresh-all-buffers))
    1.32+
    1.33+  (defun offlineimap-get-password (host port)
    1.34+    (let* ((netrc (netrc-parse (expand-file-name "~/.netrc.gpg")))
    1.35+           (hostentry (netrc-machine netrc host port port)))
    1.36+      (when hostentry (netrc-get hostentry "password"))))
    1.37+  (keymap-set user-map "e m" #'notmuch)
    1.38+  (keymap-set user-map "e M" #'notmuch-exec-offlineimap))
    1.39+
    1.40+(use-package elfeed :ensure t
    1.41+  :custom
    1.42+  elfeed-feeds 
    1.43+  '(("http://threesixty360.wordpress.com/feed/" blog math)
    1.44+    ("http://www.50ply.com/atom.xml" blog dev)
    1.45+    ("http://blog.cryptographyengineering.com/feeds/posts/default" blog)
    1.46+    ("http://abstrusegoose.com/feed.xml" comic)
    1.47+    ("http://accidental-art.tumblr.com/rss" image math)
    1.48+    ("http://curiousprogrammer.wordpress.com/feed/" blog dev)
    1.49+    ("http://feeds.feedburner.com/amazingsuperpowers" comic)
    1.50+    ("http://amitp.blogspot.com/feeds/posts/default" blog dev)
    1.51+    ("http://pages.cs.wisc.edu/~psilord/blog/rssfeed.rss" blog)
    1.52+    ("http://www.anticscomic.com/?feed=rss2" comic)
    1.53+    ("http://feeds.feedburner.com/blogspot/TPQSS" blog dev)
    1.54+    ("http://techchrunch.com/feeds" tech news)
    1.55+    ("https://rss.nytimes.com/services/xml/rss/nyt/Technology.xml" tech news)
    1.56+    ("https://static.fsf.org/fsforg/rss/news.xml" tech news)
    1.57+    ("https://feeds.npr.org/1001/rss.xml" news)
    1.58+    ("https://search.cnbc.com/rs/search/combinedcms/view.xml?partnerId=wrss01&id=10000664" fin news)
    1.59+    ("https://search.cnbc.com/rs/search/combinedcms/view.xml?partnerId=wrss01&id=19854910" tech news)
    1.60+    ("https://search.cnbc.com/rs/search/combinedcms/view.xml?partnerId=wrss01&id=100003114" us news)
    1.61+    ("http://arxiv.org/rss/cs" cs rnd)
    1.62+    ("http://arxiv.org/rss/math" math rnd)
    1.63+    ("http://arxiv.org/rss/q-fin" q-fin rnd)
    1.64+    ("http://arxiv.org/rss/stat" stat rnd)
    1.65+    ("http://arxiv.org/rss/econ" econ rnd)
    1.66+    ;; John Wiegley
    1.67+    ("http://newartisans.com/rss.xml" dev blog)
    1.68+    ;; comp
    1.69+    ;; ("https://lab.rwest.io/comp.atom?feed_token=pHu9qwLkjy4CWJHx9rrJ" comp vc)
    1.70+    )
    1.71+  :init
    1.72+  (keymap-set user-map "e f" #'elfeed)
    1.73+  (keymap-set user-map "e F" #'elfeed-update))
    1.74+
    1.75+(use-package org-mime :ensure t)
    1.76+
    1.77+(use-package sh-script
    1.78+  :hook (sh-mode . flymake-mode))
    1.79+
    1.80+(provide 'ellis)
    1.81 ;;; ellis.el ends here