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:
parent
3f9e62dab7
commit
6fc1aa9c62
1 changed files with 7 additions and 2 deletions
|
@ -9,8 +9,13 @@
|
||||||
(if (modulep! :ui workspaces)
|
(if (modulep! :ui workspaces)
|
||||||
(progn
|
(progn
|
||||||
(+workspace-switch +rss-workspace-name t)
|
(+workspace-switch +rss-workspace-name t)
|
||||||
|
(unless (memq (buffer-local-value 'major-mode
|
||||||
|
(window-buffer
|
||||||
|
(selected-window)))
|
||||||
|
'(elfeed-show-mode
|
||||||
|
elfeed-search-mode))
|
||||||
(doom/switch-to-scratch-buffer)
|
(doom/switch-to-scratch-buffer)
|
||||||
(elfeed)
|
(elfeed))
|
||||||
(+workspace/display))
|
(+workspace/display))
|
||||||
(setq +rss--wconf (current-window-configuration))
|
(setq +rss--wconf (current-window-configuration))
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue