dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

geiser.el (4344B)


      1 ;;; geiser.el --- GNU Emacs and Scheme talk to each other -*- lexical-binding: t; -*-
      2 
      3 ;; Copyright (C) 2009-2013, 2015, 2018, 2021-2022 Jose Antonio Ortega Ruiz
      4 
      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>.
      9 
     10 ;; Author: Jose Antonio Ortega Ruiz (jao@gnu.org)
     11 ;; Maintainer: Jose Antonio Ortega Ruiz (jao@gnu.org)
     12 ;; Keywords: languages, scheme, geiser
     13 ;; Homepage: https://gitlab.com/emacs-geiser/
     14 ;; Package-Requires: ((emacs "25.1") (project "0.8.1"))
     15 ;; SPDX-License-Identifier: BSD-3-Clause
     16 ;; Version: 0.28.2
     17 
     18 ;;; Commentary:
     19 
     20 ;; Geiser is a generic Emacs/Scheme interaction mode, featuring an
     21 ;; enhanced REPL and a set of minor modes improving Emacs' basic scheme
     22 ;; major mode.
     23 
     24 ;; Geiser supports Guile, Chicken, Gauche, Chibi, MIT-Scheme, Gambit,
     25 ;; Racket, Stklos, Kawa and Chez.  Each one has a separate ELPA package
     26 ;; (geiser-guile, geiser-chicken, etc.) that you should install to use
     27 ;; your favourite scheme.
     28 
     29 
     30 ;; Main functionalities:
     31 ;;     - Evaluation of forms in the namespace of the current module.
     32 ;;     - Macro expansion.
     33 ;;     - File/module loading.
     34 ;;     - Namespace-aware identifier completion (including local bindings,
     35 ;;       names visible in the current module, and module names).
     36 ;;     - Autodoc: the echo area shows information about the signature of
     37 ;;       the procedure/macro around point automatically.
     38 ;;     - Jump to definition of identifier at point.
     39 ;;     - Direct access to documentation, including docstrings (when the
     40 ;;       implementation provides them) and user manuals.
     41 ;;     - Listings of identifiers exported by a given module (Guile).
     42 ;;     - Listings of callers/callees of procedures (Guile).
     43 ;;     - Rudimentary support for debugging (list of
     44 ;;       evaluation/compilation error in an Emacs' compilation-mode
     45 ;;       buffer).
     46 ;;     - Support for inline images in schemes, such as Racket, that treat
     47 ;;       them as first order values.
     48 
     49 ;; See http://www.nongnu.org/geiser/ for the full manual in HTML form, or
     50 ;; the the info manual installed by this package.
     51 
     52 
     53 ;;; Code:
     54 ;;; Locations:
     55 
     56 ;;;###autoload
     57 (defconst geiser-elisp-dir (file-name-directory load-file-name)
     58   "Directory containing Geiser's Elisp files.")
     59 
     60 
     61 ;;; Autoloads:
     62 
     63 ;;;###autoload
     64 (autoload 'geiser-version "geiser-version" "Echo Geiser's version." t)
     65 
     66 ;;;###autoload
     67 (autoload 'geiser-unload "geiser-reload" "Unload all Geiser code." t)
     68 
     69 ;;;###autoload
     70 (autoload 'geiser-reload "geiser-reload" "Reload Geiser code." t)
     71 
     72 ;;;###autoload
     73 (autoload 'geiser "geiser-repl" "Start a Geiser REPL." t)
     74 
     75 ;;;###autoload
     76 (autoload 'run-geiser "geiser-repl" "Start a Geiser REPL." t)
     77 
     78 ;;;###autoload
     79 (autoload 'geiser-connect "geiser-repl"
     80   "Start a Geiser REPL connected to a remote server." t)
     81 
     82 ;;;###autoload
     83 (autoload 'geiser-connect-local "geiser-repl"
     84   "Start a Geiser REPL connected to a remote server over a Unix-domain socket."
     85   t)
     86 
     87 ;;;###autoload
     88 (autoload 'geiser-repl-switch "geiser-repl"
     89   "Switch to a running one Geiser REPL." t)
     90 
     91 ;;;###autoload
     92 (autoload 'geiser-mode "geiser-mode"
     93   "Minor mode adding Geiser REPL interaction to Scheme buffers." t)
     94 
     95 ;;;###autoload
     96 (autoload 'turn-on-geiser-mode "geiser-mode"
     97   "Enable Geiser's mode (useful in Scheme buffers)." t)
     98 
     99 ;;;###autoload
    100 (autoload 'turn-off-geiser-mode "geiser-mode"
    101   "Disable Geiser's mode (useful in Scheme buffers)." t)
    102 
    103 (autoload 'geiser-activate-implementation "geiser-impl"
    104   "Register the given implementation as active.")
    105 
    106 (autoload 'geiser-implementation-extension "geiser-impl"
    107   "Register a file extension as handled by a given implementation.")
    108 
    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-image
    121         geiser-implementation
    122         geiser-xref))
    123 
    124 
    125 ;;; Setup:
    126 
    127 ;;;###autoload
    128 (autoload 'geiser-mode--maybe-activate "geiser-mode")
    129 
    130 ;;;###autoload
    131 (add-hook 'scheme-mode-hook #'geiser-mode--maybe-activate)
    132 
    133 (provide 'geiser)
    134 ;;; geiser.el ends here