summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-25 23:18:25 +0000
committerjao <jao@gnu.org>2021-03-25 23:18:25 +0000
commit1b30e169208ff04fcf981bd70cec0cdc6f39e562 (patch)
treece2cec697fefef60f921c92933553aa9347e1888
parent4eb79b623129e0275771d442a0746749e2b5b2c0 (diff)
downloadelibs-1b30e169208ff04fcf981bd70cec0cdc6f39e562.tar.gz
elibs-1b30e169208ff04fcf981bd70cec0cdc6f39e562.tar.bz2
wee eww config bits
-rw-r--r--gnus.org2
-rw-r--r--init.org19
2 files changed, 20 insertions, 1 deletions
diff --git a/gnus.org b/gnus.org
index bea8c0e..7b22e37 100644
--- a/gnus.org
+++ b/gnus.org
@@ -512,7 +512,7 @@
(setq gnus-button-url 'browse-url-generic
gnus-inhibit-images t
- mm-text-html-renderer 'jao-gnus-html-renderer ;; 'w3m ;; 'shr
+ mm-text-html-renderer 'shr ;; 'jao-gnus-html-renderer ;; 'w3m ;; 'shr
shr-use-colors nil
shr-use-fonts nil
mm-w3m-safe-url-regexp nil
diff --git a/init.org b/init.org
index 5d54892..94f115f 100644
--- a/init.org
+++ b/init.org
@@ -2222,6 +2222,25 @@
#+begin_src emacs-lisp
(jao-load-org "w3m")
#+end_src
+*** eww
+ #+BEGIN_SRC emacs-lisp
+ (use-package jao-eww-session
+ :custom ((jao-eww-session-duplicate-tabs 'ask)
+ (jao-eww-session-file "~/.emacs.d/eww-session.el")))
+
+ (defun jao-eww-browse-url (url &rest r)
+ "Browse URL using eww."
+ (jao-afio--goto-www)
+ (select-window (frame-first-window))
+ (eww url 4))
+
+ (setq eww-download-directory "~/var/download"
+ eww-browse-url-new-window-is-tab nil
+ shr-max-width 130
+ shr-width nil
+ shr-max-image-proportion 0.9
+ jao-browse-url-function #'jao-eww-browse-url)
+ #+END_SRC
* Shells
*** shell modes
#+begin_src emacs-lisp