diff options
author | JSDurand <mmemmew@gmail.com> | 2021-02-22 11:51:15 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-02-22 11:51:15 +0800 |
commit | 7743f3ed1b81fbc693d58585596bf7caf783d1c7 (patch) | |
tree | e236de03db2b36c4d45b2fcf92ec89ea67859ba5 /elfeed-conf.el | |
parent | 01c080b98c6c7b645ac5c502c896b0965b784cb1 (diff) |
More configurations
Now TeX and elfeed are roughly configured.
Diffstat (limited to 'elfeed-conf.el')
-rw-r--r-- | elfeed-conf.el | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/elfeed-conf.el b/elfeed-conf.el new file mode 100644 index 0000000..ea8f974 --- /dev/null +++ b/elfeed-conf.el @@ -0,0 +1,56 @@ +;;; elfeed-conf.el --- My configurations for elfeed -*- lexical-binding: t; -*- + +;; Copyright (C) 2021 李俊緯 + +;; Author: 李俊緯 <mmemmew@gmail.com> +;; Keywords: comm, hypermedia + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <https://www.gnu.org/licenses/>. + +;;; Commentary: + +;; This is my configuration file of elfeed, for viewing RSS/atom +;; feeds. + +;;; Code: + +(use-package "elfeed" 'elfeed) + +(setq elfeed-feeds + (list (list "https://wiwi.video/feeds/videos.atom?sort=-publishedAt" + 'wiwi) + (list "https://protesilaos.com/codelog.xml" + 'prot))) + +;; I still prefer the defaults. + +(setq elfeed-show-entry-switch #'switch-to-buffer) +(setq elfeed-show-entry-delete #'elfeed-kill-buffer) + +;;;###autoload +(defun elfeed-display-buffer (buffer) + "Display BUFFER in the bottom window." + (display-buffer buffer + '(display-buffer-reuse-mode-window display-buffer-at-bottom))) + +;;;###autoload +(defun durand-elfeed-kill-buffer () + "Kill the buffer and delete its window." + (kill-buffer (current-buffer)) + (cond + ((one-window-p)) + ((delete-window (get-buffer-window (current-buffer)))))) + +(provide 'elfeed-conf) +;;; elfeed-conf.el ends here |