Move hyperspec config to slime package
This commit is contained in:
parent
b741ec1a4c
commit
642e1b3c64
1 changed files with 34 additions and 33 deletions
|
@ -285,25 +285,7 @@
|
|||
(defun g-init-lisp-font-lock ()
|
||||
(setq font-lock-defaults g-cl-font-lock-defaults))
|
||||
|
||||
(add-hook 'lisp-mode-hook 'g-init-lisp-font-lock)
|
||||
|
||||
(defvar mk/hyperspec-dir-locations
|
||||
'("d:/visua/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/Documents/HyperSpec-7-0/HyperSpec/"
|
||||
"~/HyperSpec-7-0/HyperSpec/"
|
||||
"~/sites/HyperSpec/")
|
||||
"List of possible locations where the local HyperSpec could reside.")
|
||||
|
||||
(defun mk/hyperspec-dir ()
|
||||
"Finds and returns the URI of the local HyperSpec directory.
|
||||
Uses `mk/hyperspec-dir-locations' to find the directory."
|
||||
(let ((dir-prefix (if (eq system-type 'windows-nt) "file:///" "file://"))
|
||||
(dir (seq-find 'file-directory-p mk/hyperspec-dir-locations)))
|
||||
(if dir (concat dir-prefix (expand-file-name dir)) nil)))
|
||||
|
||||
(setq common-lisp-hyperspec-root (mk/hyperspec-dir)))
|
||||
(add-hook 'lisp-mode-hook 'g-init-lisp-font-lock))
|
||||
|
||||
(use-package cc-mode
|
||||
:defer t
|
||||
|
@ -410,20 +392,6 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
(slime-autodoc-use-multiline-p 1)
|
||||
:bind ("C-c C-q" . slime-close-all-parens-in-sexp)
|
||||
:config
|
||||
(slime-setup '(slime-autodoc
|
||||
;; slime-banner
|
||||
slime-tramp
|
||||
slime-fancy
|
||||
slime-asdf
|
||||
slime-indentation
|
||||
slime-editing-commands
|
||||
slime-sbcl-exts))
|
||||
(progn
|
||||
(setq common-lisp-hyperspec-symbol-table
|
||||
(concat common-lisp-hyperspec-root "Data/Map_Sym.txt"))
|
||||
(setq common-lisp-hyperspec-issuex-table
|
||||
(concat common-lisp-hyperspec-root "Data/Map_IssX.txt")))
|
||||
|
||||
;; (if (eq system-type 'windows-nt)
|
||||
;; (setq sbcl-exe "C:\\Program Files\\Steel Bank Common Lisp\\sbcl.exe"
|
||||
;; sbcl-core "C:\\Program Files\\Steel Bank Common Lisp\\sbcl.core"
|
||||
|
@ -434,6 +402,39 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
|
|||
;; (when (file-exists-p helper)
|
||||
;; (load-file helper)))
|
||||
|
||||
(slime-setup '(slime-autodoc
|
||||
;; slime-banner
|
||||
slime-tramp
|
||||
slime-fancy
|
||||
slime-asdf
|
||||
slime-indentation
|
||||
slime-editing-commands
|
||||
slime-sbcl-exts))
|
||||
|
||||
(defvar mk/hyperspec-dir-locations
|
||||
'("d:/visua/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/projects/personal/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/lisp-docs/HyperSpec-7-0/HyperSpec/"
|
||||
"~/Documents/HyperSpec-7-0/HyperSpec/"
|
||||
"~/HyperSpec-7-0/HyperSpec/"
|
||||
"~/sites/HyperSpec/")
|
||||
"List of possible locations where the local HyperSpec could reside.")
|
||||
|
||||
(defun mk/hyperspec-dir ()
|
||||
"Finds and returns the URI of the local HyperSpec directory.
|
||||
Uses `mk/hyperspec-dir-locations' to find the directory."
|
||||
(let ((dir-prefix (if (eq system-type 'windows-nt) "file:///" "file://"))
|
||||
(dir (seq-find 'file-directory-p mk/hyperspec-dir-locations)))
|
||||
(if dir (concat dir-prefix (expand-file-name dir)) nil)))
|
||||
|
||||
(setq common-lisp-hyperspec-root (mk/hyperspec-dir))
|
||||
|
||||
(progn
|
||||
(setq common-lisp-hyperspec-symbol-table
|
||||
(concat common-lisp-hyperspec-root "Data/Map_Sym.txt"))
|
||||
(setq common-lisp-hyperspec-issuex-table
|
||||
(concat common-lisp-hyperspec-root "Data/Map_IssX.txt")))
|
||||
|
||||
(defvar mk/slime-remote-instances
|
||||
'((:machine-instance "u1-metaebene"
|
||||
:remote-host "u1.metaebene.dev"
|
||||
|
|
Loading…
Add table
Reference in a new issue