Olivia5k/makefile-executor.el@d0a34c355f -> Olivia5k/makefile-executor.el@170d14d834 andras-simonyi/citeproc-el@e705911a29 -> andras-simonyi/citeproc-el@2623043b25 cjohansson/emacs-ssh-deploy@9311f9b4f8 -> cjohansson/emacs-ssh-deploy@94b56c0428 dash-docs-el/counsel-dash@370d5f6f14 -> dash-docs-el/counsel-dash@8decb980f1 editorconfig/editorconfig-emacs@1f6f16c24f -> editorconfig/editorconfig-emacs@6f6b5c1a95 emacs-citar/citar-org-roam@27105d0a95 -> emacs-citar/citar-org-roam@86e9861a49 emacs-citar/citar@4a302fcc40 -> emacs-citar/citar@5dac3d5bf2 emacs-straight/rainbow-mode@55a8c15782 -> emacs-straight/rainbow-mode@8e96388fb4 emacsfodder/kurecolor@d17a77d921 -> emacsfodder/kurecolor@ac67ceba85 emacsorphanage/quickrun@314beae43c -> emacsorphanage/quickrun@7a89313c07 emacsorphanage/terraform-mode@e560caaa9d -> emacsorphanage/terraform-mode@39d2fd5bfc jacktasia/dumb-jump@1dd583011f -> jacktasia/dumb-jump@0a783d1db6 millejoh/emacs-ipython-notebook@7b9b14435c -> millejoh/emacs-ipython-notebook@b2410dc96f tkf/emacs-request@38ed1d2e64 -> tkf/emacs-request@01e338c335 tmalsburg/helm-bibtex@78f5931e1c -> tmalsburg/helm-bibtex@8ebf50d5bd vedang/pdf-tools@bb0b71f5ba -> vedang/pdf-tools@bc2ba117e8 xuchunyang/osx-dictionary.el@1a4479d9f4 -> xuchunyang/osx-dictionary.el@0715e5a3ac yoshiki/yaml-mode@535273d5a1 -> yoshiki/yaml-mode@3fcb36d603 zx2c4/password-store@c4d8a1d815 -> zx2c4/password-store@26d2dae04b
:tools eval
Description unfold
This modules adds inline code evaluation support to Emacs and a universal interface for opening and interacting with REPLs.
Maintainers
This module has no dedicated maintainers. Become a maintainer?
Module flags
- +overlay
- Enable the use of overlays (near the cursor) to display the result of inline code evaluation (rather than the minibuffer). If the results are too big the minibuffer will be used anyway.
Packages
Hacks
-
Quickrun has been modified to:
- Use only one output window, in case of consecutive execution of code.
- The quickrun window will resize itself to fit its output, once the underlying process is finished executing the code.
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
This module has no direct prerequisites.
However, many languages will require that you install their interpreters, code runners and/or repls to power the functionality of this module. Visit the documentation of their respective doom-module::lang module for instructions.
TODO Usage
🔨 This module's usage documentation is incomplete. Complete it?
Inline Code Evaluation
REPLs
Invoked via:
- SPC o r or
:repl
will open a REPL in a popup window. SPC o R or:repl!
will open a REPL in the current window. If a REPL is already open and a selection is active, it will be sent to the REPL. M-x +eval/open-repl-other-window
(SPC o r)M-x +eval/open-repl-same-window
(SPC o R)M-x +eval/send-region-to-repl
(SPC c s) while a selection (and REPL) is active
TODO Configuration
🔨 This module's configuration documentation is incomplete. Complete it?
Register a REPL for a major-mode
REPLs are defined for most languages Doom supports. Check that language module's README.org to see if it does (and if it requires additional setup).
To use them, you may use M-x +eval/open-repl-other-window
, M-x
+eval/open-repl-same-window
, :repl
(for evil users) or the default binding:
SPC o r. These will open a REPL in a popup window.
You can simply call that mode's REPL command manually. e.g.
M-x ielm
, but this will bar you from the benefits of Doom's REPL system (like send-to-repl functionality).
Otherwise, you can define your own for a specified major mode:
(set-repl-handler! MAJOR-MODES FUNCTION)
MAJOR-MODES
is a single major mode symbol or a list of them.
FUNCTION
should return a repl buffer. Any window changes in this function are
ignored, then the REPL is opened in a popup window. E.g.
(defun +lua/open-repl ()
(interactive)
(lua-start-process "lua" "lua")
(pop-to-buffer lua-process-buffer))
(set-repl-handler! 'lua-mode #'+lua/open-repl)
Change how code is evaluated in a major mode
Run regions or entire buffers with Quickrun. Output is show in a popup window.
Quickrun includes support for many languages, usually by sending text directly to interpreters or compilers. However, occasionally, you'll find a language without support (like Crystal), or a language with better Emacs integration (like elisp).
To define a "runner":
(set-eval-handler! 'crystal-mode
'((:command . "crystal")
(:exec . "%c %s")
(:description . "Run Crystal script")))
A simpler version is simply to use the path to the binary:
(set-eval-handler! 'groovy-mode "groovy")
Or if you'd rather run an elisp command:
(set-eval-handler! 'emacs-lisp-mode #'+emacs-lisp-eval)
TODO Troubleshooting
There are no known problems with this module. Report one?
Frequently asked questions
This module has no FAQs yet. Ask one?
TODO Appendix
🔨 This module has no appendix yet. Write one?