dev.fron.io nixrc / f9b740e
emacs(webkit): use w3m as fallback instead Tony Olagbaiye a month ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3636 (setq webkit-search-prefix "https://qwant.com/?q=")
3737 (setq webkit-browse-url-force-new t)
3838
39 (defun webkit-eww-advice (orig-fun &rest args)
39 (defun webkit-w3m-advice (orig-fun &rest args)
4040 (if (display-graphic-p)
4141 (apply orig-fun args)
42 (eww (car args))))
43 (advice-add #'webkit-browse-url :around #'webkit-eww-advice)
42 (w3m (car args))))
43 (advice-add #'webkit-browse-url :around #'webkit-w3m-advice)
4444
4545 (add-hook 'after-init-hook
4646 (lambda (&rest _)