emacs.d/init.el

45 lines
1.4 KiB
EmacsLisp
Raw Normal View History

2020-07-26 14:36:43 +02:00
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/"))
2023-10-04 11:32:38 +02:00
(require 'server)
(or (eq (server-running-p) t)
(server-start))
2023-10-04 12:22:36 +02:00
(load "bundle--general")
(load "bundle--gui")
2020-08-20 18:47:45 +02:00
(load "bundle--package")
2023-11-09 07:49:03 +01:00
(load "bundle--lisp")
2023-10-04 12:22:36 +02:00
(load "bundle--irc")
(load "bundle--news")
(load "bundle--calendar")
2023-10-04 11:32:38 +02:00
(load "bundle--email")
2022-05-06 19:31:15 +02:00
(load "bundle--org")
2022-10-24 10:18:36 +02:00
(load "bundle--ux")
(load "bundle--mk")
2023-10-04 11:32:38 +02:00
(load "bundle--linux")
2023-10-17 11:03:46 +02:00
(let ((f "~/feeds.el"))
(when (file-exists-p f)
(load-file f)))
2023-10-25 16:59:53 +02:00
(defmacro mk/open-html-page (name path)
2023-10-28 13:55:58 +02:00
"Make interactive functions to call important docs"
2023-10-25 16:59:53 +02:00
`(defun ,name ()
(interactive)
2023-10-26 15:01:33 +02:00
(eww (concat "file://"
(and (eq system-type 'windows-nt)
"/")
(expand-file-name ,path)))))
2023-10-25 16:59:53 +02:00
2023-11-05 17:19:10 +01:00
(mk/open-html-page mk/clsite-clm
2023-11-03 16:52:29 +01:00
"~/cl-sites/www.cs.cmu.edu/Groups/AI/html/cltl/clm/node1.html")
2023-11-05 17:19:10 +01:00
(mk/open-html-page mk/clsite-pcl
2023-11-03 16:52:29 +01:00
"~/cl-sites/gigamonkeys.com/book/index.html")
2023-11-05 17:19:10 +01:00
(mk/open-html-page mk/clsite-clcb
2023-11-03 16:52:29 +01:00
"~/cl-sites/lispcookbook.github.io/cl-cookbook/index.html")
2023-11-05 17:19:10 +01:00
(mk/open-html-page mk/clsite-sqlite
2023-11-03 16:52:29 +01:00
"~/cl-sites/sqlite-doc-3440000/index.html")
2023-10-26 15:01:33 +02:00
(defun mk/wget-mirror-site (url)
"Use wget to mirror a website for offline use. Takes a URL as argument."
(interactive "sEnter the URL to mirror: ")
(let ((cmd (format "wget --mirror --convert-links --adjust-extension --page-requisites --no-parent %s" url)))
(async-shell-command cmd)))