cmuscheme.el 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. ;;; cmuscheme.el --- Scheme process in a buffer. Adapted from tea.el
  2. ;; Copyright (C) 1988, 1994, 1997, 2001-2015 Free Software Foundation,
  3. ;; Inc.
  4. ;; Author: Olin Shivers <olin.shivers@cs.cmu.edu>
  5. ;; Maintainer: emacs-devel@gnu.org
  6. ;; Keywords: processes, lisp
  7. ;; This file is part of GNU Emacs.
  8. ;; GNU Emacs is free software: you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation, either version 3 of the License, or
  11. ;; (at your option) any later version.
  12. ;; GNU Emacs is distributed in the hope that it will be useful,
  13. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ;; GNU General Public License for more details.
  16. ;; You should have received a copy of the GNU General Public License
  17. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  18. ;;; Commentary:
  19. ;; This is a customization of comint-mode (see comint.el)
  20. ;;
  21. ;; Written by Olin Shivers (olin.shivers@cs.cmu.edu). With bits and pieces
  22. ;; lifted from scheme.el, shell.el, clisp.el, newclisp.el, cobol.el, et al..
  23. ;; 8/88
  24. ;;
  25. ;; Please send me bug reports, bug fixes, and extensions, so that I can
  26. ;; merge them into the master source.
  27. ;;
  28. ;; The changelog is at the end of this file.
  29. ;;
  30. ;; NOTE: MIT Cscheme, when invoked with the -emacs flag, has a special user
  31. ;; interface that communicates process state back to the superior emacs by
  32. ;; outputting special control sequences. The gnumacs package, xscheme.el, has
  33. ;; lots and lots of special purpose code to read these control sequences, and
  34. ;; so is very tightly integrated with the cscheme process. The cscheme
  35. ;; interrupt handler and debugger read single character commands in cbreak
  36. ;; mode; when this happens, xscheme.el switches to special keymaps that bind
  37. ;; the single letter command keys to emacs functions that directly send the
  38. ;; character to the scheme process. Cmuscheme mode does *not* provide this
  39. ;; functionality. If you are a cscheme user, you may prefer to use the
  40. ;; xscheme.el/cscheme -emacs interaction.
  41. ;;
  42. ;; Here's a summary of the pros and cons, as I see them.
  43. ;; xscheme: Tightly integrated with inferior cscheme process! A few commands
  44. ;; not in cmuscheme. But. Integration is a bit of a hack. Input
  45. ;; history only keeps the immediately prior input. Bizarre
  46. ;; keybindings.
  47. ;;
  48. ;; cmuscheme: Not tightly integrated with inferior cscheme process. But.
  49. ;; Carefully integrated functionality with the entire suite of
  50. ;; comint-derived CMU process modes. Keybindings reminiscent of
  51. ;; Zwei and Hemlock. Good input history. A few commands not in
  52. ;; xscheme.
  53. ;;
  54. ;; It's a tradeoff. Pay your money; take your choice. If you use a Scheme
  55. ;; that isn't Cscheme, of course, there isn't a choice. Xscheme.el is *very*
  56. ;; Cscheme-specific; you must use cmuscheme.el. Interested parties are
  57. ;; invited to port xscheme functionality on top of comint mode...
  58. ;;; CHANGE LOG
  59. ;; ===========================================================================
  60. ;; 8/88 Olin
  61. ;; Created.
  62. ;;
  63. ;; 2/15/89 Olin
  64. ;; Removed -emacs flag from process invocation. It's only useful for
  65. ;; cscheme, and makes cscheme assume it's running under xscheme.el,
  66. ;; which messes things up royally. A bug.
  67. ;;
  68. ;; 5/22/90 Olin
  69. ;; - Upgraded to use comint-send-string and comint-send-region.
  70. ;; - run-scheme now offers to let you edit the command line if
  71. ;; you invoke it with a prefix-arg. M-x scheme is redundant, and
  72. ;; has been removed.
  73. ;; - Explicit references to process "scheme" have been replaced with
  74. ;; (scheme-proc). This allows better handling of multiple process bufs.
  75. ;; - Added scheme-send-last-sexp, bound to C-x C-e. A gnu convention.
  76. ;; - Have not added process query facility a la cmulisp.el's lisp-show-arglist
  77. ;; and friends, but interested hackers might find a useful application
  78. ;; of this facility.
  79. ;;
  80. ;; 3/12/90 Olin
  81. ;; - scheme-load-file and scheme-compile-file no longer switch-to-scheme.
  82. ;; Tale suggested this.
  83. ;;; Code:
  84. (require 'scheme)
  85. (require 'comint)
  86. (defgroup cmuscheme nil
  87. "Run a scheme process in a buffer."
  88. :group 'scheme)
  89. ;;; INFERIOR SCHEME MODE STUFF
  90. ;;;============================================================================
  91. (defcustom inferior-scheme-mode-hook nil
  92. "Hook for customizing inferior-scheme mode."
  93. :type 'hook
  94. :group 'cmuscheme)
  95. (defvar inferior-scheme-mode-map
  96. (let ((m (make-sparse-keymap)))
  97. (define-key m "\M-\C-x" 'scheme-send-definition) ;gnu convention
  98. (define-key m "\C-x\C-e" 'scheme-send-last-sexp)
  99. (define-key m "\C-c\C-l" 'scheme-load-file)
  100. (define-key m "\C-c\C-k" 'scheme-compile-file)
  101. (scheme-mode-commands m)
  102. m))
  103. ;; Install the process communication commands in the scheme-mode keymap.
  104. (define-key scheme-mode-map "\M-\C-x" 'scheme-send-definition);gnu convention
  105. (define-key scheme-mode-map "\C-x\C-e" 'scheme-send-last-sexp);gnu convention
  106. (define-key scheme-mode-map "\C-c\C-e" 'scheme-send-definition)
  107. (define-key scheme-mode-map "\C-c\M-e" 'scheme-send-definition-and-go)
  108. (define-key scheme-mode-map "\C-c\C-r" 'scheme-send-region)
  109. (define-key scheme-mode-map "\C-c\M-r" 'scheme-send-region-and-go)
  110. (define-key scheme-mode-map "\C-c\M-c" 'scheme-compile-definition)
  111. (define-key scheme-mode-map "\C-c\C-c" 'scheme-compile-definition-and-go)
  112. (define-key scheme-mode-map "\C-c\C-t" 'scheme-trace-procedure)
  113. (define-key scheme-mode-map "\C-c\C-x" 'scheme-expand-current-form)
  114. (define-key scheme-mode-map "\C-c\C-z" 'switch-to-scheme)
  115. (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-file)
  116. (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-file) ;k for "kompile"
  117. (let ((map (lookup-key scheme-mode-map [menu-bar scheme])))
  118. (define-key map [separator-eval] '("--"))
  119. (define-key map [compile-file]
  120. '("Compile Scheme File" . scheme-compile-file))
  121. (define-key map [load-file]
  122. '("Load Scheme File" . scheme-load-file))
  123. (define-key map [switch]
  124. '("Switch to Scheme" . switch-to-scheme))
  125. (define-key map [com-def-go]
  126. '("Compile Definition & Go" . scheme-compile-definition-and-go))
  127. (define-key map [com-def]
  128. '("Compile Definition" . scheme-compile-definition))
  129. (define-key map [exp-form]
  130. '("Expand current form" . scheme-expand-current-form))
  131. (define-key map [trace-proc]
  132. '("Trace procedure" . scheme-trace-procedure))
  133. (define-key map [send-def-go]
  134. '("Evaluate Last Definition & Go" . scheme-send-definition-and-go))
  135. (define-key map [send-def]
  136. '("Evaluate Last Definition" . scheme-send-definition))
  137. (define-key map [send-region-go]
  138. '("Evaluate Region & Go" . scheme-send-region-and-go))
  139. (define-key map [send-region]
  140. '("Evaluate Region" . scheme-send-region))
  141. (define-key map [send-sexp]
  142. '("Evaluate Last S-expression" . scheme-send-last-sexp))
  143. )
  144. (defvar scheme-buffer)
  145. (define-derived-mode inferior-scheme-mode comint-mode "Inferior Scheme"
  146. "Major mode for interacting with an inferior Scheme process.
  147. The following commands are available:
  148. \\{inferior-scheme-mode-map}
  149. A Scheme process can be fired up with M-x run-scheme.
  150. Customization: Entry to this mode runs the hooks on `comint-mode-hook' and
  151. `inferior-scheme-mode-hook' (in that order).
  152. You can send text to the inferior Scheme process from other buffers containing
  153. Scheme source.
  154. `switch-to-scheme' switches the current buffer to the Scheme process buffer.
  155. `scheme-send-definition' sends the current definition to the Scheme process.
  156. `scheme-compile-definition' compiles the current definition.
  157. `scheme-send-region' sends the current region to the Scheme process.
  158. `scheme-compile-region' compiles the current region.
  159. `scheme-send-definition-and-go', `scheme-compile-definition-and-go',
  160. `scheme-send-region-and-go', and `scheme-compile-region-and-go'
  161. switch to the Scheme process buffer after sending their text.
  162. For information on running multiple processes in multiple buffers, see
  163. documentation for variable `scheme-buffer'.
  164. Commands:
  165. Return after the end of the process' output sends the text from the
  166. end of process to point.
  167. Return before the end of the process' output copies the sexp ending at point
  168. to the end of the process' output, and sends it.
  169. Delete converts tabs to spaces as it moves back.
  170. Tab indents for Scheme; with argument, shifts rest
  171. of expression rigidly with the current line.
  172. C-M-q does Tab on each line starting within following expression.
  173. Paragraphs are separated only by blank lines. Semicolons start comments.
  174. If you accidentally suspend your process, use \\[comint-continue-subjob]
  175. to continue it."
  176. ;; Customize in inferior-scheme-mode-hook
  177. (setq comint-prompt-regexp "^[^>\n]*>+ *") ; OK for cscheme, oaklisp, T,...
  178. (scheme-mode-variables)
  179. (setq mode-line-process '(":%s"))
  180. (setq comint-input-filter (function scheme-input-filter))
  181. (setq comint-get-old-input (function scheme-get-old-input)))
  182. (defcustom inferior-scheme-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'"
  183. "Input matching this regexp are not saved on the history list.
  184. Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters."
  185. :type 'regexp
  186. :group 'cmuscheme)
  187. (defun scheme-input-filter (str)
  188. "Don't save anything matching `inferior-scheme-filter-regexp'."
  189. (not (string-match-p inferior-scheme-filter-regexp str)))
  190. (defun scheme-get-old-input ()
  191. "Snarf the sexp ending at point."
  192. (save-excursion
  193. (let ((end (point)))
  194. (backward-sexp)
  195. (buffer-substring (point) end))))
  196. ;;;###autoload
  197. (defun run-scheme (cmd)
  198. "Run an inferior Scheme process, input and output via buffer `*scheme*'.
  199. If there is a process already running in `*scheme*', switch to that buffer.
  200. With argument, allows you to edit the command line (default is value
  201. of `scheme-program-name').
  202. If the file `~/.emacs_SCHEMENAME' or `~/.emacs.d/init_SCHEMENAME.scm' exists,
  203. it is given as initial input.
  204. Note that this may lose due to a timing error if the Scheme processor
  205. discards input when it starts up.
  206. Runs the hook `inferior-scheme-mode-hook' (after the `comint-mode-hook'
  207. is run).
  208. \(Type \\[describe-mode] in the process buffer for a list of commands.)"
  209. (interactive (list (if current-prefix-arg
  210. (read-string "Run Scheme: " scheme-program-name)
  211. scheme-program-name)))
  212. (if (not (comint-check-proc "*scheme*"))
  213. (let ((cmdlist (split-string-and-unquote cmd)))
  214. (set-buffer (apply 'make-comint "scheme" (car cmdlist)
  215. (scheme-start-file (car cmdlist)) (cdr cmdlist)))
  216. (inferior-scheme-mode)))
  217. (setq scheme-program-name cmd)
  218. (setq scheme-buffer "*scheme*")
  219. (pop-to-buffer-same-window "*scheme*"))
  220. (defun scheme-start-file (prog)
  221. "Return the name of the start file corresponding to PROG.
  222. Search in the directories \"~\" and `user-emacs-directory',
  223. in this order. Return nil if no start file found."
  224. (let* ((progname (file-name-nondirectory prog))
  225. (start-file (concat "~/.emacs_" progname))
  226. (alt-start-file (concat user-emacs-directory "init_" progname ".scm")))
  227. (if (file-exists-p start-file)
  228. start-file
  229. (and (file-exists-p alt-start-file) alt-start-file))))
  230. (defun scheme-send-region (start end)
  231. "Send the current region to the inferior Scheme process."
  232. (interactive "r")
  233. (comint-send-region (scheme-proc) start end)
  234. (comint-send-string (scheme-proc) "\n"))
  235. (defun scheme-send-definition ()
  236. "Send the current definition to the inferior Scheme process."
  237. (interactive)
  238. (save-excursion
  239. (end-of-defun)
  240. (let ((end (point)))
  241. (beginning-of-defun)
  242. (scheme-send-region (point) end))))
  243. (defun scheme-send-last-sexp ()
  244. "Send the previous sexp to the inferior Scheme process."
  245. (interactive)
  246. (scheme-send-region (save-excursion (backward-sexp) (point)) (point)))
  247. (defcustom scheme-compile-exp-command "(compile '%s)"
  248. "Template for issuing commands to compile arbitrary Scheme expressions."
  249. :type 'string
  250. :group 'cmuscheme)
  251. (defun scheme-compile-region (start end)
  252. "Compile the current region in the inferior Scheme process.
  253. \(A BEGIN is wrapped around the region: (BEGIN <region>))"
  254. (interactive "r")
  255. (comint-send-string (scheme-proc) (format scheme-compile-exp-command
  256. (format "(begin %s)"
  257. (buffer-substring start end))))
  258. (comint-send-string (scheme-proc) "\n"))
  259. (defun scheme-compile-definition ()
  260. "Compile the current definition in the inferior Scheme process."
  261. (interactive)
  262. (save-excursion
  263. (end-of-defun)
  264. (let ((end (point)))
  265. (beginning-of-defun)
  266. (scheme-compile-region (point) end))))
  267. (defcustom scheme-trace-command "(trace %s)"
  268. "Template for issuing commands to trace a Scheme procedure.
  269. Some Scheme implementations might require more elaborate commands here.
  270. For PLT-Scheme, e.g., one should use
  271. (setq scheme-trace-command \"(begin (require (lib \\\"trace.ss\\\")) (trace %s))\")
  272. For Scheme 48 and Scsh use \",trace %s\"."
  273. :type 'string
  274. :group 'cmuscheme)
  275. (defcustom scheme-untrace-command "(untrace %s)"
  276. "Template for switching off tracing of a Scheme procedure.
  277. Scheme 48 and Scsh users should set this variable to \",untrace %s\"."
  278. :type 'string
  279. :group 'cmuscheme)
  280. (defun scheme-trace-procedure (proc &optional untrace)
  281. "Trace procedure PROC in the inferior Scheme process.
  282. With a prefix argument switch off tracing of procedure PROC."
  283. (interactive
  284. (list (let ((current (symbol-at-point))
  285. (action (if current-prefix-arg "Untrace" "Trace")))
  286. (if current
  287. (read-string (format "%s procedure [%s]: " action current) nil nil (symbol-name current))
  288. (read-string (format "%s procedure: " action))))
  289. current-prefix-arg))
  290. (when (= (length proc) 0)
  291. (error "Invalid procedure name"))
  292. (comint-send-string (scheme-proc)
  293. (format
  294. (if untrace scheme-untrace-command scheme-trace-command)
  295. proc))
  296. (comint-send-string (scheme-proc) "\n"))
  297. (defcustom scheme-macro-expand-command "(expand %s)"
  298. "Template for macro-expanding a Scheme form.
  299. For Scheme 48 and Scsh use \",expand %s\"."
  300. :type 'string
  301. :group 'cmuscheme)
  302. (defun scheme-expand-current-form ()
  303. "Macro-expand the form at point in the inferior Scheme process."
  304. (interactive)
  305. (let ((current-form (scheme-form-at-point)))
  306. (if current-form
  307. (progn
  308. (comint-send-string (scheme-proc)
  309. (format
  310. scheme-macro-expand-command
  311. current-form))
  312. (comint-send-string (scheme-proc) "\n"))
  313. (error "Not at a form"))))
  314. (defun scheme-form-at-point ()
  315. (let ((next-sexp (thing-at-point 'sexp)))
  316. (if (and next-sexp (string-equal (substring next-sexp 0 1) "("))
  317. next-sexp
  318. (save-excursion
  319. (backward-up-list)
  320. (scheme-form-at-point)))))
  321. (defun switch-to-scheme (eob-p)
  322. "Switch to the Scheme process buffer.
  323. With argument, position cursor at end of buffer."
  324. (interactive "P")
  325. (if (or (and scheme-buffer (get-buffer scheme-buffer))
  326. (scheme-interactively-start-process))
  327. (pop-to-buffer-same-window scheme-buffer)
  328. (error "No current process buffer. See variable `scheme-buffer'"))
  329. (when eob-p
  330. (push-mark)
  331. (goto-char (point-max))))
  332. (defun scheme-send-region-and-go (start end)
  333. "Send the current region to the inferior Scheme process.
  334. Then switch to the process buffer."
  335. (interactive "r")
  336. (scheme-send-region start end)
  337. (switch-to-scheme t))
  338. (defun scheme-send-definition-and-go ()
  339. "Send the current definition to the inferior Scheme.
  340. Then switch to the process buffer."
  341. (interactive)
  342. (scheme-send-definition)
  343. (switch-to-scheme t))
  344. (defun scheme-compile-definition-and-go ()
  345. "Compile the current definition in the inferior Scheme.
  346. Then switch to the process buffer."
  347. (interactive)
  348. (scheme-compile-definition)
  349. (switch-to-scheme t))
  350. (defun scheme-compile-region-and-go (start end)
  351. "Compile the current region in the inferior Scheme.
  352. Then switch to the process buffer."
  353. (interactive "r")
  354. (scheme-compile-region start end)
  355. (switch-to-scheme t))
  356. (defcustom scheme-source-modes '(scheme-mode)
  357. "Used to determine if a buffer contains Scheme source code.
  358. If it's loaded into a buffer that is in one of these major modes, it's
  359. considered a scheme source file by `scheme-load-file' and `scheme-compile-file'.
  360. Used by these commands to determine defaults."
  361. :type '(repeat function)
  362. :group 'cmuscheme)
  363. (defvar scheme-prev-l/c-dir/file nil
  364. "Caches the last (directory . file) pair.
  365. Caches the last pair used in the last `scheme-load-file' or
  366. `scheme-compile-file' command. Used for determining the default
  367. in the next one.")
  368. (defun scheme-load-file (file-name)
  369. "Load a Scheme file FILE-NAME into the inferior Scheme process."
  370. (interactive (comint-get-source "Load Scheme file: " scheme-prev-l/c-dir/file
  371. scheme-source-modes t)) ; t because `load'
  372. ; needs an exact name
  373. (comint-check-source file-name) ; Check to see if buffer needs saved.
  374. (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name)
  375. (file-name-nondirectory file-name)))
  376. (comint-send-string (scheme-proc) (concat "(load \""
  377. file-name
  378. "\"\)\n")))
  379. (defun scheme-compile-file (file-name)
  380. "Compile a Scheme file FILE-NAME in the inferior Scheme process."
  381. (interactive (comint-get-source "Compile Scheme file: "
  382. scheme-prev-l/c-dir/file
  383. scheme-source-modes
  384. nil)) ; nil because COMPILE doesn't
  385. ; need an exact name.
  386. (comint-check-source file-name) ; Check to see if buffer needs saved.
  387. (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name)
  388. (file-name-nondirectory file-name)))
  389. (comint-send-string (scheme-proc) (concat "(compile-file \""
  390. file-name
  391. "\"\)\n")))
  392. (defvar scheme-buffer nil "The current scheme process buffer.
  393. MULTIPLE PROCESS SUPPORT
  394. ===========================================================================
  395. Cmuscheme.el supports, in a fairly simple fashion, running multiple Scheme
  396. processes. To run multiple Scheme processes, you start the first up with
  397. \\[run-scheme]. It will be in a buffer named *scheme*. Rename this buffer
  398. with \\[rename-buffer]. You may now start up a new process with another
  399. \\[run-scheme]. It will be in a new buffer, named *scheme*. You can
  400. switch between the different process buffers with \\[switch-to-buffer].
  401. Commands that send text from source buffers to Scheme processes --
  402. like `scheme-send-definition' or `scheme-compile-region' -- have to choose a
  403. process to send to, when you have more than one Scheme process around. This
  404. is determined by the global variable `scheme-buffer'. Suppose you
  405. have three inferior Schemes running:
  406. Buffer Process
  407. foo scheme
  408. bar scheme<2>
  409. *scheme* scheme<3>
  410. If you do a \\[scheme-send-definition-and-go] command on some Scheme source
  411. code, what process do you send it to?
  412. - If you're in a process buffer (foo, bar, or *scheme*),
  413. you send it to that process.
  414. - If you're in some other buffer (e.g., a source file), you
  415. send it to the process attached to buffer `scheme-buffer'.
  416. This process selection is performed by function `scheme-proc'.
  417. Whenever \\[run-scheme] fires up a new process, it resets `scheme-buffer'
  418. to be the new process's buffer. If you only run one process, this will
  419. do the right thing. If you run multiple processes, you might need to
  420. set `scheme-buffer' to whichever process buffer you want to use.
  421. More sophisticated approaches are, of course, possible. If you find yourself
  422. needing to switch back and forth between multiple processes frequently,
  423. you may wish to consider ilisp.el, a larger, more sophisticated package
  424. for running inferior Lisp and Scheme processes. The approach taken here is
  425. for a minimal, simple implementation. Feel free to extend it.")
  426. (defun scheme-proc ()
  427. "Return the current Scheme process, starting one if necessary.
  428. See variable `scheme-buffer'."
  429. (unless (and scheme-buffer
  430. (get-buffer scheme-buffer)
  431. (comint-check-proc scheme-buffer))
  432. (scheme-interactively-start-process))
  433. (or (scheme-get-process)
  434. (error "No current process. See variable `scheme-buffer'")))
  435. (defun scheme-get-process ()
  436. "Return the current Scheme process or nil if none is running."
  437. (get-buffer-process (if (eq major-mode 'inferior-scheme-mode)
  438. (current-buffer)
  439. scheme-buffer)))
  440. (defun scheme-interactively-start-process (&optional _cmd)
  441. "Start an inferior Scheme process. Return the process started.
  442. Since this command is run implicitly, always ask the user for the
  443. command to run."
  444. (save-window-excursion
  445. (run-scheme (read-string "Run Scheme: " scheme-program-name))))
  446. ;;; Do the user's customization...
  447. (defcustom cmuscheme-load-hook nil
  448. "This hook is run when cmuscheme is loaded in.
  449. This is a good place to put keybindings."
  450. :type 'hook
  451. :group 'cmuscheme)
  452. (run-hooks 'cmuscheme-load-hook)
  453. (provide 'cmuscheme)
  454. ;;; cmuscheme.el ends here