From 1b30e169208ff04fcf981bd70cec0cdc6f39e562 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 25 Mar 2021 23:18:25 +0000 Subject: wee eww config bits --- gnus.org | 2 +- init.org | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3