;;; eww-conf.el --- My configurations for Emacs Web Wowser -*- lexical-binding: t; -*- ;;; Author: Durand ;;; Created: 2021-01-20 ;;; Commentary: ;; Simply configurations for the great Emacs Web Wowser ;;; Code: (require 'eww) (setq eww-bookmarks-directory load-file-directory) (setq eww-search-prefix "https://searx.lukesmith.xyz/search?q=") ;; This feels much quicker (cond ((version<= "28" emacs-version)) ((setq eww-retrieve-command '("wget" "--quiet" "--output-document=-")))) (define-key eww-mode-map (vector 'C-tab) #'durand-eww-goto-search-result) ;;;###autoload (defun durand-eww-goto-search-result () "Go to the search results on a search page. Otherwise, just go to the beginning of the page." (interactive) (save-match-data (cond ((string-match-p "searx\\." (plist-get eww-data :url)) (re-search-forward "search results")) ((goto-char (point-min))))) (recenter 0)) (provide 'eww-conf) ;;; eww-conf.el ends here