blob: b241b787bef8538c9e2d0283bdfee77cf0f75883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
;;; geiser.el -- main geiser file
;; Copyright (C) 2009, 2010 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
;; have received a copy of the license along with this program. If
;; not, see <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>.
;; Autoloads and basic setup for geiser.
;;; Locations:
(defvar geiser-elisp-dir nil
"Directory containing Geiser's Elisp files.")
(defvar geiser-scheme-dir nil
"Directory containing Geiser's Scheme files.")
(setq geiser-elisp-dir (file-name-directory load-file-name))
(add-to-list 'load-path geiser-elisp-dir)
(setq geiser-scheme-dir (expand-file-name "../scheme/" geiser-elisp-dir))
;;; Autoloads:
(autoload 'geiser-version "geiser-version.el" "Echo Geiser's version." t)
(autoload 'geiser-unload "geiser-reload.el" "Unload all Geiser code." t)
(autoload 'geiser-reload "geiser-reload.el" "Reload Geiser code." t)
(autoload 'geiser "geiser-repl.el"
"Start a Geiser REPL, or switch to a running one." t)
(autoload 'run-geiser "geiser-repl.el"
"Start a Geiser REPL." t)
(autoload 'switch-to-geiser "geiser-guile.el"
"Switch to a running one Geiser REPL." t)
(autoload 'run-guile "geiser-guile.el"
"Start a Geiser Guile REPL, or switch to a running one." t)
(autoload 'switch-to-guile "geiser-guile.el"
"Start a Geiser Guile REPL, or switch to a running one." t)
(autoload 'run-racket "geiser-racket.el"
"Start a Geiser Racket REPL, or switch to a running one." t)
(autoload 'switch-to-racket "geiser-guile.el"
"Start a Geiser Racket REPL, or switch to a running one." t)
(autoload 'geiser-mode "geiser-mode.el"
"Minor mode adding Geiser REPL interaction to Scheme buffers." t)
(autoload 'turn-on-geiser-mode "geiser-mode.el"
"Enable Geiser's mode (useful in Scheme buffers)." t)
(autoload 'turn-off-geiser-mode "geiser-mode.el"
"Disable Geiser's mode (useful in Scheme buffers)." t)
(mapc (lambda (group)
(custom-add-load group (symbol-name group))
(custom-add-load 'geiser (symbol-name group)))
'(geiser
geiser-repl
geiser-autodoc
geiser-doc
geiser-faces
geiser-mode
geiser-guile
geiser-racket
geiser-implementation
geiser-xref))
;;; Setup:
(eval-after-load "scheme"
'(add-hook 'scheme-mode-hook 'turn-on-geiser-mode))
(add-to-list 'auto-mode-alist '("\\.rkt\\'" . scheme-mode))
(provide 'geiser)
|