1
0
Fork 0
cl-sites/cl-sites.el
2025-02-05 18:52:26 +01:00

77 lines
3 KiB
EmacsLisp

;;; cl-sites.el --- Provide HTML docs -*- lexical-binding: t; -*-
;; Copyright (C) 2024 Marcus Kammer
;; Author: Marcus Kammer <marcus.kammer@mailbox.org>
;; Keywords: lisp
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Provide interactive functions to open eww with specific HTML file.
;;; Code:
(defmacro mk/open-html-page (name path buffer-name)
"Make interactive functions to call important docs"
`(defun ,name ()
(interactive)
(eww (concat "file://"
(and (eq system-type 'windows-nt)
"/")
(expand-file-name ,path)))
(rename-buffer ,buffer-name)))
(mk/open-html-page mk/clsite-clm
"~/cl-sites/www.cs.cmu.edu/Groups/AI/html/cltl/clm/node1.html"
"*mk/clsite-clm*")
(mk/open-html-page mk/clsite-pcl
"~/cl-sites/gigamonkeys.com/book/index.html"
"*mk/clsite-pcl*")
(mk/open-html-page mk/clsite-clcb
"~/cl-sites/lispcookbook.github.io/cl-cookbook/index.html"
"*mk/clsite-clcb*")
(mk/open-html-page mk/clsite-sqlite
"~/cl-sites/sqlite-doc-3440000/index.html"
"*mk/clsite-sqlite*")
(mk/open-html-page mk/clsite-asdf
"~/cl-sites/asdf.common-lisp.dev/index.html"
"*mk/clsite-asdf*")
(mk/open-html-page mk/clsite-lisp-docs
"~/cl-sites/lisp-docs.github.io/index.html"
"*mk/clsite-lisp-docs*")
(mk/open-html-page mk/clsite-bgnet
"~/cl-sites/bgnet/index.html"
"*mk/clsite-bgnet*")
(mk/open-html-page mk/clsite-tbnl
"~/cl-sites/edicl.github.io/hunchentoot/index.html"
"*mk/clsite-tbnl*")
(mk/open-html-page mk/clsite-guile
"~/cl-sites/guile.html_node/index.html"
"*mk/clsite-guile*")
(mk/open-html-page mk/clsite-scheme
"~/cl-sites/www.r6rs.org/final/html/r6rs/r6rs-Z-H-2.html"
"*mk/clsite-scheme*")
(mk/open-html-page mk/clsite-awesome-cl
"~/cl-sites/awesome-cl.com/index.html"
"*mk/clsite-awesome-cl*")
(mk/open-html-page mk/clsite-ecl
"~/cl-sites/ecl.common-lisp.dev/static/manual/index.html"
"*mk/clsite-ecl*")
(mk/open-html-page mk/clsite-nova
"~/cl-sites/novaspec.org/cl/index.html"
"*mk/clsite-nova*")
(provide 'cl-sites)
;;; cl-sites.el ends here