diff options
author | jao <jao@gnu.org> | 2021-03-25 23:18:25 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-25 23:18:25 +0000 |
commit | 1b30e169208ff04fcf981bd70cec0cdc6f39e562 (patch) | |
tree | ce2cec697fefef60f921c92933553aa9347e1888 | |
parent | 4eb79b623129e0275771d442a0746749e2b5b2c0 (diff) | |
download | elibs-1b30e169208ff04fcf981bd70cec0cdc6f39e562.tar.gz elibs-1b30e169208ff04fcf981bd70cec0cdc6f39e562.tar.bz2 |
wee eww config bits
-rw-r--r-- | gnus.org | 2 | ||||
-rw-r--r-- | init.org | 19 |
2 files changed, 20 insertions, 1 deletions
@@ -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 @@ -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 |