refactor(rss): factor out hardcoded workspace name

This commit is contained in:
Daniel Levy Moreno 2022-01-30 11:43:07 -08:00 committed by GitHub
parent dacf38bad3
commit 85b16f2f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -11,6 +11,8 @@
"Automatically slice images shown in elfeed-show-mode buffers, making them
easier to scroll through.")
(defvar +rss-workspace-name "*rss*"
"Name of the workspace that contains the elfeed buffer.")
;;
;; Packages
@ -59,9 +61,9 @@ easier to scroll through.")
"q" #'elfeed-kill-buffer
"r" #'elfeed-search-update--force
(kbd "M-RET") #'elfeed-search-browse-url)
(map! (:map elfeed-show-mode-map
(map! (:map elfeed-show-mode-map)
:n "gc" nil
:n "gc" #'+rss/copy-link))))
:n "gc" #'+rss/copy-link)))