diff options
-rw-r--r-- | config.org | 61 | ||||
-rw-r--r-- | elfeed.org | 34 |
2 files changed, 47 insertions, 48 deletions
diff --git a/config.org b/config.org index 16a01ac..a4ddb95 100644 --- a/config.org +++ b/config.org | |||
@@ -4,7 +4,7 @@ | |||
4 | #+EXPORT_FILE_NAME: README.md | 4 | #+EXPORT_FILE_NAME: README.md |
5 | #+OPTIONS: toc:nil | 5 | #+OPTIONS: toc:nil |
6 | #+BANKRUPTCY_COUNT: 3 | 6 | #+BANKRUPTCY_COUNT: 3 |
7 | #+Time-stamp: <2020-12-11 18:29:59 acdw> | 7 | #+Time-stamp: <2020-12-12 12:37:04 acdw> |
8 | 8 | ||
9 | Let’s configure Emacs using Org mode, they said. It’ll be fun, they said. | 9 | Let’s configure Emacs using Org mode, they said. It’ll be fun, they said. |
10 | 10 | ||
@@ -1119,23 +1119,56 @@ from [[https://github.com/alphapapa/unpackaged.el#ensure-blank-lines-between-hea | |||
1119 | (0x0-default-service 'ttm)) | 1119 | (0x0-default-service 'ttm)) |
1120 | #+end_src | 1120 | #+end_src |
1121 | 1121 | ||
1122 | ** Elfeed | 1122 | ** RSS |
1123 | |||
1124 | inspired by [[https://karthinks.com/software/lazy-elfeed/]["Lazy Elfeed"]]. | ||
1125 | 1123 | ||
1126 | #+begin_src emacs-lisp | 1124 | #+begin_src emacs-lisp |
1127 | (use-package elfeed | 1125 | (use-package newsticker |
1128 | :when (executable-find "curl") | 1126 | :custom |
1127 | (newsticker-url-list | ||
1128 | ;; LABEL URL [START-TIME] [INERVAL] [WGET-ARGUMENTS] | ||
1129 | '(("wsinatra" "http://lambdacreate.com/static/feed.rss") | ||
1130 | ("elioat" "https://eli.li/feed.rss") | ||
1131 | ("ACDW" "https://www.acdw.net/atom.xml") | ||
1132 | ("june" "https://text.causal.agency/feed.atom") | ||
1133 | ("kylie - notes" "https://www.somas.is/notes.atom") | ||
1134 | ("kylie - rhizome" "https://www.somas.is/rhizome.atom") | ||
1135 | ("brennan" "https://p1k3.com/all.xml") | ||
1136 | ("Planet Emacs" "https://planet.emacslife.com/atom.xml") | ||
1137 | ("nullprogram, Chris Wellons" "https://nullprogram.com/feed/") | ||
1138 | ("Malleable Systems" "https://malleable.systems/blog/index.xml")) | ||
1139 | ) | ||
1129 | :hook | 1140 | :hook |
1130 | (elfeed-show-mode-hook . visual-fill-column-mode)) | 1141 | (newsticker-treeview-item-mode-hook . visual-fill-column-mode)) |
1142 | #+end_src | ||
1131 | 1143 | ||
1132 | (use-package elfeed-org | 1144 | ** Web browsing |
1133 | :custom | 1145 | |
1134 | (rmh-elfeed-org-files | 1146 | *** Open youtube links in mpv |
1135 | (list (expand-file-name "elfeed.org" | 1147 | |
1136 | user-emacs-directory))) | 1148 | from [[https://karthinks.com/software/more-batteries-included-with-emacs/#regexp-builder--m-x-re-builder][karthinks]]. |
1137 | :init | 1149 | |
1138 | (elfeed-org)) | 1150 | #+begin_src emacs-lisp |
1151 | (require 'browse-url) | ||
1152 | |||
1153 | (when (executable-find "mpv") | ||
1154 | (defun browse-url-mpv (url &optional single) | ||
1155 | (start-process "mpv" nil (if single "mpv" "umpv") | ||
1156 | (shell-quote-wildcard-pattern url))) | ||
1157 | |||
1158 | (defun browse-url-at-point-mpv (&optional single) | ||
1159 | "Open a link in mpv." | ||
1160 | (interactive "P") | ||
1161 | (let ((browse-url-browser-function | ||
1162 | (if single | ||
1163 | (lambda | ||
1164 | (url &optional _new-window) | ||
1165 | (browse-url-mpv url t)) | ||
1166 | #'browse-url-mpv))) | ||
1167 | (browse-url-at-point))) | ||
1168 | |||
1169 | (cuss browse-url-browser-function | ||
1170 | '(("https?:\\/\\/www\\.youtu\\.*be." . browse-url-mpv) | ||
1171 | ("." . browse-url-generic)))) | ||
1139 | #+end_src | 1172 | #+end_src |
1140 | 1173 | ||
1141 | * Appendices | 1174 | * Appendices |
diff --git a/elfeed.org b/elfeed.org deleted file mode 100644 index ad7aee7..0000000 --- a/elfeed.org +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #+TITLE:Elfeed ... feeds | ||
2 | #+AUTHOR:Case Duckworth | ||
3 | |||
4 | * Feeds :elfeed: | ||
5 | |||
6 | ** Fwends :friends: | ||
7 | |||
8 | *** [[http://lambdacreate.com/static/feed.rss][wsinatra]] | ||
9 | |||
10 | *** [[https://eli.li/feed.rss][elioat]] | ||
11 | |||
12 | *** [[https://www.acdw.net/atom.xml][ACDW]] | ||
13 | |||
14 | *** [[https://text.causal.agency/feed.atom][june]] | ||
15 | |||
16 | *** kylie | ||
17 | |||
18 | **** [[https://www.somas.is/notes.atom][notes]] | ||
19 | |||
20 | **** [[https://www.somas.is/rhizome.atom][rhizome]] | ||
21 | |||
22 | *** [[https://p1k3.com/all.xml][brennan]] | ||
23 | |||
24 | ** Programming :prog: | ||
25 | |||
26 | *** [[https://planet.emacslife.com/atom.xml][Planet Emacs]] :emacs: | ||
27 | |||
28 | *** [[https://nullprogram.com/feed/][nullprogram, Chris Wellons]] | ||
29 | |||
30 | *** [[https://malleable.systems/blog/index.xml][Malleable Systems]] | ||
31 | |||
32 | ** Comix :comics: | ||
33 | |||
34 | ** Fun :fun: | ||