diff options
| -rw-r--r-- | custom/jao-custom-eww.el | 3 | ||||
| -rw-r--r-- | init.el | 2 | ||||
| -rw-r--r-- | lib/net/jao-eww-session.el | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el index 8c48823..1b9eb9b 100644 --- a/custom/jao-custom-eww.el +++ b/custom/jao-custom-eww.el @@ -116,8 +116,7 @@ (jao-eww-reopen t)) ;;; sessions -(use-package jao-eww-session - :custom ((jao-eww-session-file "~/.emacs.d/cache/eww-session.eld"))) +(use-package jao-eww-session :demand t) ;;; eww to org (defun jao-eww-to-org (&optional dest) @@ -422,7 +422,7 @@ (let ((level (if jao-transparent-frame 100 jao-frames-default-alpha))) (jao-set-transparency level all))) -(jao-when-linux (jao-set-transparency)) +(jao-set-transparency) ;;;; themes (defun jao-colors-scheme-dark-p () diff --git a/lib/net/jao-eww-session.el b/lib/net/jao-eww-session.el index fc158d6..adbe98f 100644 --- a/lib/net/jao-eww-session.el +++ b/lib/net/jao-eww-session.el @@ -98,5 +98,9 @@ (unless (zerop offset) (switch-to-buffer (nth offset (jao-eww-session-eww-buffers)))))) +(defun jao-eww-session-invisible-buffers () + (seq-filter (lambda (b) (null (get-buffer-window b))) + (jao-eww-session-eww-buffers (current-buffer)))) + (provide 'jao-eww-session) ;;; jao-eww-session.el ends here |
