blob: f0ee51a6a1067d9f81dea4714b4b9ab4cbb5c172 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
;;; eww-config --- EWW Text Browser Settings -*- lexical-binding: t; -*-
;; author Craig Jennings <c@cjennings.net>
;;; Commentary:
;;; Code:
;; ------------------------------------ EWW ------------------------------------
(use-package eww
:ensure nil ;; built-in
:bind
("M-E" . eww)
(:map eww-mode-map
("<" . eww-back-url) ;; in addition to 'l'
(">" . eww-forward-url) ;; in addition to 'n'
("i" . eww-toggle-images)
("o" . eww-open-in-new-buffer))
:config
(setq shr-use-colors nil) ;; respect colors in the html
(setq shr-bullet "• ") ;; unordered lists use bullet glyph
(setq shr-folding-mode t)
(setq eww-search-prefix "https://duckduckgo.com/html?q=") ;; use Duck Duck Go as search engine
(setq url-cookie-file "~/.local/share/cookies.txt")
(setq url-privacy-level '(email agent lastloc))) ;; don't send any info listed here
(provide 'eww-config)
;;; eww-config.el ends here
|