Next: Use new get-default and add custom hostlist to blocker-mode

master
Pierre Neidhardt 2019-06-15 11:20:36 +02:00
parent e7179b0b26
commit 8d090b7d28
1 changed files with 8 additions and 1 deletions

View File

@ -9,10 +9,17 @@
;; ;; (setf (cdr (last (eval (get-default 'window 'search-engines))))
;; ;; '(("yt" . "https://www.youtube.com/results?search_query=~a")))
(nconc (eval (get-default 'window 'search-engines))
(nconc (get-default 'window 'search-engines)
'(("q" . "http://quickdocs.org/search?q=~a")
("yt" . "https://www.youtube.com/results?search_query=~a")))
(add-to-default-list
(make-instance 'hostlist
:hosts '("platform.twitter.com"
"syndication.twitter.com"
"m.media-amazon.com"))
'blocker-mode 'hostlists)
(defun eval-in-emacs (&rest s-exps)
"Evaluate S-EXPS with emacsclient."
(let ((s-exps-string (cl-strings:replace-all