Remove Wallabag configuration

This commit is contained in:
2024-11-19 22:11:58 +01:00
parent e8dd98aa3c
commit a903e5f436
4 changed files with 1 additions and 38 deletions

View File

@@ -10,9 +10,6 @@
;; Map elfeed to global keybinding ;; Map elfeed to global keybinding
(map! :leader :n "o e" #'=rss (map! :leader :n "o e" #'=rss
:desc "RSS reader") :desc "RSS reader")
;; Map wallabag to global keybinding
(map! :leader :n "o w" #'=wallabag
:desc "Read saved articles")
;; Keybindings for org-noter ;; Keybindings for org-noter
(map! :mode pdf-view-mode (map! :mode pdf-view-mode
:n "i" #'org-noter-insert-note :n "i" #'org-noter-insert-note

6
+ui.el
View File

@@ -62,11 +62,7 @@
:icon (nerd-icons-octicon "nf-oct-rss" :face 'doom-dashboard-menu-title) :icon (nerd-icons-octicon "nf-oct-rss" :face 'doom-dashboard-menu-title)
:when (featurep! :app rss) :when (featurep! :app rss)
:face (:inherit (doom-dashboard-menu-title bold)) :face (:inherit (doom-dashboard-menu-title bold))
:action =rss) :action =rss)))
("Read saved articles"
:icon (nerd-icons-octicon "nf-oct-book" :face 'doom-dashboard-menu-title)
:face (:inherit (doom-dashboard-menu-title bold))
:action =wallabag)))
;; Restore previous session without confirmation ;; Restore previous session without confirmation
(defadvice! restore-no-confirm-session-quickload-a () (defadvice! restore-no-confirm-session-quickload-a ()
:override #'doom/quickload-session :override #'doom/quickload-session

View File

@@ -88,34 +88,6 @@
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
;; Use pass as auth-source ;; Use pass as auth-source
(add-to-list 'auth-sources 'password-store) (add-to-list 'auth-sources 'password-store)
;; Set up wallabag
(after! wallabag
(setq wallabag-host "https://wallabag.coolneng.duckdns.org"
wallabag-username "coolneng"
wallabag-password (auth-source-pass-get 'secret "api/wallabag")
wallabag-clientid (auth-source-pass-get "clientid" "api/wallabag")
wallabag-secret (auth-source-pass-get "api-secret" "api/wallabag")
wallabag-show-sidebar 't
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))))
(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 ;; Set up elfeed
(after! elfeed (after! elfeed
(setq elfeed-use-curl t) (setq elfeed-use-curl t)

View File

@@ -9,8 +9,6 @@
(package! org-super-agenda) (package! org-super-agenda)
;; Save recipes to org file ;; Save recipes to org file
(package! org-chef) (package! org-chef)
;; Wallabag client
(package! wallabag :recipe (:host github :repo "chenyanming/wallabag.el" :files ("*.el" "*.alist" "*.css")))
;; Miniflux integration for elfeed ;; Miniflux integration for elfeed
(package! elfeed-protocol) (package! elfeed-protocol)
;; Prettier LaTeX source blocks ;; Prettier LaTeX source blocks