Open wallabag on its own workspace
This commit is contained in:
20
config.el
20
config.el
@@ -86,9 +86,23 @@
|
||||
wallabag-show-entry-switch 'switch-to-buffer
|
||||
url-automatic-caching t)
|
||||
(add-hook 'wallabag-after-render-hook 'wallabag-search-update-and-clear-filter))
|
||||
(add-hook! 'doom-real-buffer-functions
|
||||
(defun +rss-buffer-p (buf)
|
||||
(string-match-p "^\\*wallabag" (buffer-name buf))))
|
||||
(add-hook! 'doom-real-buffer-functions
|
||||
(defun +rss-buffer-p (buf)
|
||||
(string-match-p "^\\*wallabag" (buffer-name buf))))
|
||||
(defvar +wallabag-workspace-name "*wallabag*")
|
||||
(defun =wallabag ()
|
||||
"Activate (or switch to) `wallabag' in its workspace."
|
||||
(interactive)
|
||||
(if (modulep! :ui workspaces)
|
||||
(progn
|
||||
(+workspace-switch +wallabag-workspace-name t)
|
||||
(doom/switch-to-scratch-buffer)
|
||||
(wallabag)
|
||||
(+workspace/display))
|
||||
(setq +wallabag--wconf (current-window-configuration))
|
||||
(delete-other-windows)
|
||||
(switch-to-buffer (doom-fallback-buffer))
|
||||
(wallabag)))
|
||||
;; Set up elfeed
|
||||
(after! elfeed
|
||||
(setq elfeed-use-curl t)
|
||||
|
||||
Reference in New Issue
Block a user