Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
marvel
GitHub Repository: marvel/qnf
Path: blob/master/elisp/slime/slime-autoloads.el
989 views
1
;;; slime-autoloads.el --- autoload definitions for SLIME
2
3
;; Copyright (C) 2007 Helmut Eller
4
5
;; This file is protected by the GNU GPLv2 (or later), as distributed
6
;; with GNU Emacs.
7
8
;;; Commentary:
9
10
;; This code defines the necessary autoloads, so that we don't need to
11
;; load everything from .emacs.
12
13
;;; Code:
14
15
(autoload 'slime "slime"
16
"Start a Lisp subprocess and connect to its Swank server." t)
17
18
(autoload 'slime-mode "slime"
19
"SLIME: The Superior Lisp Interaction (Minor) Mode for Emacs." t)
20
21
(autoload 'slime-connect "slime"
22
"Connect to a running Swank server." t)
23
24
(autoload 'hyperspec-lookup "hyperspec" nil t)
25
26
(autoload 'slime-lisp-mode-hook "slime")
27
(autoload 'slime-scheme-mode-hook "slime")
28
29
(defvar slime-lisp-modes '(lisp-mode))
30
(defvar slime-setup-contribs nil
31
"List of contribst to load.
32
Modified my slime-setup.")
33
34
(defun slime-setup (&optional contribs)
35
"Setup Emacs so that lisp-mode buffers always use SLIME.
36
CONTRIBS is a list of contrib packages to load."
37
(when (member 'lisp-mode slime-lisp-modes)
38
(add-hook 'lisp-mode-hook 'slime-lisp-mode-hook))
39
(setq slime-setup-contribs contribs)
40
(add-hook 'slime-load-hook 'slime-setup-contribs))
41
42
(provide 'slime-autoloads)
43
44
;;; slime-autoloads.el ends here
45
46