init-eww.el 1.2 KB

123456789101112131415161718192021222324252627282930
  1. (use-package eww
  2. :bind
  3. (:map eww-mode-map
  4. ("&" . nil)
  5. ("& &" . eww-browse-with-external-browser)
  6. ("C-j" . eww-copy-page-url)
  7. ("r" . eww-forward-url))
  8. :custom-face
  9. (eww-form-checkbox ((t (:inherit (link)))))
  10. (eww-form-text ((t (:inherit widget-field :underline t))))
  11. ;; (eww-form-file
  12. ;; ((t (:box (:line-width 2 :color nil :style released-button)
  13. ;; :foreground "black" :background "lightgray"))))
  14. ;; (eww-form-select
  15. ;; ((t (:foreground "black" :background "lightgrey"))))
  16. ;; (eww-form-submit
  17. ;; ((t (:box (:line-width 2 :color nil :style released-button)
  18. ;; :foreground "black" :background "lightgray"))))
  19. ;; (eww-form-text
  20. ;; ((t (:underline (:color foreground-color :style line) :background "lightgray"))))
  21. ;; (eww-form-textarea
  22. ;; ((t (:underline (:color foreground-color :style line) :background "lightgray"))))
  23. :custom
  24. (browse-url-secondary-browser-function 'qrthi/browse-url-graphical-browser)
  25. (shr-max-image-proportion 0.3)
  26. (shr-use-fonts nil) ;keep nil for monospace
  27. (shr-image-animate nil)
  28. (shr-blocked-images "\\(github.githubassets\\.com\\/images\\/.+\\|masteringemacs\\.org\\)"))
  29. ;; (eww-download-directory qrthi/directory-downloads)