diff options
author | noa@gaiwan.org | 2024-06-13 08:32:59 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-13 08:32:59 +0000 |
commit | 79e8c29c3cb4d5d7ce9c230994445ef4294e150a (patch) | |
tree | 0d8d48df22c938b2eb20b4adfa86db06f05dd58c /emacs | |
parent | 1f25c11c71500b1667ac5de7c3bb154f39646a77 (diff) |
Consolidate eww configurations
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/emacs/init.el b/emacs/init.el index 1ec27db..1b01a16 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -36,11 +36,6 @@ cursor-type 'bar minibuffer-depth-indicate-mode t) -(setopt - url-cookie-trusted-urls '() - url-cookie-untrusted-urls '(".*")) - - ;;; candidate completion (use-package vertico :ensure t @@ -138,9 +133,7 @@ and when JID is not in `jabber-activity-banned'." :ensure t :mode ("\\.epub\\'" . nov-mode)) -(use-package shr - :custom - (shr-max-width nil)) + ;; also check out jinx https://github.com/minad/jinx (use-package spell-fu @@ -449,9 +442,10 @@ and when JID is not in `jabber-activity-banned'." ) ) -(use-package eww - :custom - (browse-url-browser-function 'eww-browse-url)) +(setopt browse-url-browser-function 'eww-browse-url + url-cookie-trusted-urls '() + url-cookie-untrusted-urls '(".*") + shr-max-width nil) ;; Abbrev mode expands one string into another string. I use it as a simple autocorrect mode. If i misspell a word, i run C-x a i g which will prompt me for what to expand the previous word into. I type the correct spelling, and whenever i make that mistake again, it will automatically be corrected. It's important to be careful not to set something that could be a typo for two words though, because otherwise it gets even more annoying. Luckily it's easy to update the abbrevs which are stored in ~/.config/emacs/abbrev_defs. M-x list-abbrevs is also a nice command which shows all the saved abbrevs and how many times they've been expanded. (add-hook 'text-mode-hook #'abbrev-mode) |