summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-06-18 20:18:03 +0100
committerjao <jao@gnu.org>2021-06-18 20:18:03 +0100
commite60ec9225970419d9de7cfee6e180f7e742b7e49 (patch)
tree8efb9aaf79662a45b4bfa09db762971b7776a04d /init.org
parent7a64e219709a9ae74855eeb37a0ccfccc3cc2060 (diff)
downloadelibs-e60ec9225970419d9de7cfee6e180f7e742b7e49.tar.gz
elibs-e60ec9225970419d9de7cfee6e180f7e742b7e49.tar.bz2
nits
Diffstat (limited to 'init.org')
-rw-r--r--init.org10
1 files changed, 6 insertions, 4 deletions
diff --git a/init.org b/init.org
index e590bba..dc9553f 100644
--- a/init.org
+++ b/init.org
@@ -1484,18 +1484,20 @@
(insert "\nmaildir-mailbox = " mbox "\n\n")
(save-buffer)))
- (defun jao-rss-subscribe ()
+ (defun jao-rss-subscribe (&optional url)
+ "Subscribe to a given RSS URL. If URL not given, look for it."
(interactive)
- (let* ((url (or (jao-url-around-point)
+ (let* ((url (or url
+ (jao-url-around-point)
(jao-rss--find-url)
(read-string "Feed URL: ")))
- (url+title (if (consp url) url (cons url (read-string "Feed name: "))))
+ (url+title (if (consp url) url (list url)))
(url (car url+title))
(title (cdr url+title)))
(if url
(let ((url (if (string-match "^feed:" url) (substring url 5) url)))
(when (y-or-n-p (format "Subscribe to <%s>? " url))
- (let* ((name (read-string "Name: " title))
+ (let* ((name (read-string "Feed name: " title))
(cat (completing-read "Category: "
(jao-list-mailboxes "feeds")
nil t)))