aboutsummaryrefslogtreecommitdiffstats
path: root/oni-eww.el
diff options
context:
space:
mode:
Diffstat (limited to 'oni-eww.el')
-rw-r--r--oni-eww.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/oni-eww.el b/oni-eww.el
index 713c833..e36b9bf 100644
--- a/oni-eww.el
+++ b/oni-eww.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0406.111733
+;; Version: 2026.0702.170337
;; Package-Requires: (eww oni-data-dir)
;; This program is free software; you can redistribute it and/or modify
@@ -27,6 +27,7 @@
;;; Code:
(require 'eww)
+(require 'oni-data-dir)
(defvar oni-eww-desired-window-width 120
"The window width which ‘oni-eww-resize-margins’ will try to accommodate.")
@@ -50,11 +51,13 @@ Delete all other windows and then pass BUFFER and ALIST on to
(display-buffer-same-window buffer alist))
(setq eww-bookmarks-directory (oni-data-dir-locate "eww/"))
+(setq eww-auto-rename-buffer 'url)
(add-to-list 'display-buffer-alist
`(,(rx string-start "*eww*" string-end) oni-eww-display-buffer-in-only-window))
(add-hook 'eww-mode-hook #'oni-eww-setup-margins)
+(add-hook 'eww-mode-hook #'outline-minor-mode)
(provide 'oni-eww)
;;; oni-eww.el ends here