Initial Chicken support
[geiser.git] / elisp / geiser.el
blobfb5b46a71098f3a8aad80f00eb70818268734bfa
1 ;;; geiser.el --- GNU Emacs and Scheme talk to each other
3 ;; Copyright (C) 2009, 2010, 2011, 2012, 2013 Jose Antonio Ortega Ruiz
5 ;; This program is free software; you can redistribute it and/or
6 ;; modify it under the terms of the Modified BSD License. You should
7 ;; have received a copy of the license along with this program. If
8 ;; not, see <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>.
11 ;; Autoloads and basic setup for geiser.
13 ;;; Locations:
15 ;;;###autoload
16 (defconst geiser-elisp-dir (file-name-directory load-file-name)
17 "Directory containing Geiser's Elisp files.")
19 ;;;###autoload
20 (defconst geiser-scheme-dir
21 (let ((d (expand-file-name "./scheme/" geiser-elisp-dir)))
22 (if (file-directory-p d)
24 (expand-file-name "../scheme/" geiser-elisp-dir)))
25 "Directory containing Geiser's Scheme files.")
27 ;;;###autoload
28 (when (not (member geiser-elisp-dir load-path))
29 (add-to-list 'load-path geiser-elisp-dir))
32 ;;; Autoloads:
34 ;;;###autoload
35 (autoload 'geiser-version "geiser-version" "Echo Geiser's version." t)
37 ;;;###autoload
38 (autoload 'geiser-unload "geiser-reload" "Unload all Geiser code." t)
40 ;;;###autoload
41 (autoload 'geiser-reload "geiser-reload" "Reload Geiser code." t)
43 ;;;###autoload
44 (autoload 'geiser "geiser-repl"
45 "Start a Geiser REPL, or switch to a running one." t)
47 ;;;###autoload
48 (autoload 'run-geiser "geiser-repl" "Start a Geiser REPL." t)
50 ;;;###autoload
51 (autoload 'geiser-connect "geiser-repl"
52 "Start a Geiser REPL connected to a remote server." t)
54 ;;;###autoload
55 (autoload 'switch-to-geiser "geiser-repl"
56 "Switch to a running one Geiser REPL." t)
58 ;;;###autoload
59 (autoload 'run-guile "geiser-guile" "Start a Geiser Guile REPL." t)
61 ;;;###autoload
62 (autoload 'switch-to-guile "geiser-guile"
63 "Start a Geiser Guile REPL, or switch to a running one." t)
65 ;;;###autoload
66 (autoload 'connect-to-guile "geiser-guile"
67 "Connect to a remote Geiser Guile REPL." t)
69 ;;;###autoload
70 (autoload 'run-racket "geiser-racket" "Start a Geiser Racket REPL." t)
72 ;;;###autoload
73 (autoload 'run-gracket "geiser-racket" "Start a Geiser GRacket REPL." t)
75 ;;;###autoload
76 (autoload 'switch-to-racket "geiser-racket"
77 "Start a Geiser Racket REPL, or switch to a running one." t)
79 ;;;###autoload
80 (autoload 'connect-to-racket "geiser-racket"
81 "Connect to a remote Geiser Racket REPL." t)
83 ;;;###autoload
84 (autoload 'run-chicken "geiser-chicken" "Start a Geiser Chicken REPL." t)
86 ;;;###autoload
87 (autoload 'switch-to-chicken "geiser-chicken"
88 "Start a Geiser Chicken REPL, or switch to a running one." t)
90 ;;;###autoload
91 (autoload 'connect-to-chicken "geiser-chicken"
92 "Connect to a remote Geiser Chicken REPL." t)
94 ;;;###autoload
95 (autoload 'geiser-mode "geiser-mode"
96 "Minor mode adding Geiser REPL interaction to Scheme buffers." t)
98 ;;;###autoload
99 (autoload 'turn-on-geiser-mode "geiser-mode"
100 "Enable Geiser's mode (useful in Scheme buffers)." t)
102 ;;;###autoload
103 (autoload 'turn-off-geiser-mode "geiser-mode"
104 "Disable Geiser's mode (useful in Scheme buffers)." t)
106 ;;;###autoload
107 (autoload 'geiser-mode--maybe-activate "geiser-mode")
109 ;;;###autoload
110 (mapc (lambda (group)
111 (custom-add-load group (symbol-name group))
112 (custom-add-load 'geiser (symbol-name group)))
113 '(geiser
114 geiser-repl
115 geiser-autodoc
116 geiser-doc
117 geiser-debug
118 geiser-faces
119 geiser-mode
120 geiser-guile
121 geiser-image
122 geiser-racket
123 geiser-chicken
124 geiser-implementation
125 geiser-xref))
128 ;;; Setup:
130 ;;;###autoload
131 (add-hook 'scheme-mode-hook 'geiser-mode--maybe-activate)
132 ;;;###autoload
133 (add-to-list 'auto-mode-alist '("\\.rkt\\'" . scheme-mode))
136 (provide 'geiser)
138 ;;; geiser.el ends here