Define functions to open sites in eww

This commit is contained in:
Marcus Kammer 2023-10-25 16:59:53 +02:00
parent 3f4b71ebc9
commit 4cc8156764

11
init.el
View file

@ -17,3 +17,14 @@
(let ((f "~/feeds.el"))
(when (file-exists-p f)
(load-file f)))
(defmacro mk/open-html-page (name path)
`(defun ,name ()
(interactive)
(eww (concat (if (eq system-type 'windows-nt) "file:///" "file://") (expand-file-name ,path)))))
(mk/open-html-page mk/open-clm "~/sites/www.cs.cmu.edu/Groups/AI/html/cltl/clm/node1.html")
(mk/open-html-page mk/open-pcl "~/sites/gigamonkeys.com/book/index.html")
(mk/open-html-page mk/open-clcb "~/sites/lispcookbook.github.io/cl-cookbook/index.html")