Extempore Emacs Mode
A major mode for editing Extempore code. See the Extempore project page at http://github.com/digego/extempore for more details.
Available through MELPA:
If you don't want to get it from MELPA, just download the file and use
package-install-file (or even just
There are several config variables to tweak, but in most cases the defaults will
be ok if you're just starting out. If you want to see them, hit M-x
customize and look in the
The only thing you might want to set out-of-the-box is
extempore-path, so that
you don't have to answer the "directory" prompt every time you call
switch-to-extempore. You can do it through
customize or set it directly in
your init file like so:
(setq extempore-path "/path/to/extempore/")
The most important commands are
extempore-connect(default keybinding C-c C-j)
Connect the current
extempore-mode buffer to a running Extempore
process---this is necessary to begin sending code for evaluation. If called with
a prefix arg, prompt for a host & port number to connect to, otherwise use the
An Extempore process may have multiple connected buffers, and each buffer can be connected to multiple Extempore processes.
switch-to-extempore(default keybinding C-c C-z)
Switch to the Extempore process buffer running in Emacs. If not currently running, prompt to start one.
The most useful command for day-to-day use is:
extempore-send-dwim(default keybinding C-M-x)
which sends the Extempore top-level definition under point (or current region, if active) to the Extempore process connected to the current buffer.
extempore-mode requires Emacs 24, because it inherits from
Copyright (C) 2021 Ben Swift
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.