mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(rss): only call elfeed if necessary
If our *rss* workspace is already populated by elfeed buffers, there is no reason to re-initialize elfeed.
This commit is contained in:
committed by
Henrik Lissner
parent
3f9e62dab7
commit
6fc1aa9c62
@ -9,8 +9,13 @@
|
||||
(if (modulep! :ui workspaces)
|
||||
(progn
|
||||
(+workspace-switch +rss-workspace-name t)
|
||||
(doom/switch-to-scratch-buffer)
|
||||
(elfeed)
|
||||
(unless (memq (buffer-local-value 'major-mode
|
||||
(window-buffer
|
||||
(selected-window)))
|
||||
'(elfeed-show-mode
|
||||
elfeed-search-mode))
|
||||
(doom/switch-to-scratch-buffer)
|
||||
(elfeed))
|
||||
(+workspace/display))
|
||||
(setq +rss--wconf (current-window-configuration))
|
||||
(delete-other-windows)
|
||||
|
Reference in New Issue
Block a user