/[slime]/slime/slime-autoloads.el
ViewVC logotype

Contents of /slime/slime-autoloads.el

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations)
Sat Mar 2 01:17:09 2013 UTC (13 months, 2 weeks ago) by sboukarev
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +20 -19 lines
* slime-autoloads.el: Don't load autoloads when slime is already
loaded, there's no sense in doing so.
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 (unless (featurep 'slime)
16 (autoload 'slime "slime"
17 "Start a Lisp subprocess and connect to its Swank server." t)
18
19 (autoload 'slime-mode "slime"
20 "SLIME: The Superior Lisp Interaction (Minor) Mode for Emacs." t)
21
22 (autoload 'slime-connect "slime"
23 "Connect to a running Swank server." t)
24
25 (autoload 'hyperspec-lookup "hyperspec" nil t)
26
27 (autoload 'slime-lisp-mode-hook "slime")
28 (autoload 'slime-scheme-mode-hook "slime")
29
30 (defvar slime-lisp-modes '(lisp-mode))
31 (defvar slime-setup-contribs nil
32 "List of contribst to load.
33 Modified my slime-setup.")
34
35 (defun slime-setup (&optional contribs)
36 "Setup Emacs so that lisp-mode buffers always use SLIME.
37 CONTRIBS is a list of contrib packages to load."
38 (when (member 'lisp-mode slime-lisp-modes)
39 (add-hook 'lisp-mode-hook 'slime-lisp-mode-hook))
40 (setq slime-setup-contribs contribs)
41 (add-hook 'slime-load-hook 'slime-setup-contribs))
42
43 (provide 'slime-autoloads))
44
45 ;;; slime-autoloads.el ends here

  ViewVC Help
Powered by ViewVC 1.1.5