With-Editor 3.0.4 Emacs Package User Manual

The With-Editor User Manual describes how to use the With-Editor package.


With-Editor 3.0.4 Emacs Package User Manual - cover page
Category
Programming
Document type
User Manual
Language
English
Pages
11
File format
PDF
File size
144 KB
Published
11 November, 2023
Updated
11 November, 2023
MD5 checksum
D3B42EDD8B19372B9C22E2A712A075D1

About this manual

This manual documents the With-Editor Emacs package, version 3.0.4, written by Jonas Bernoulli. The package is used internally by Magit when editing commit messages and rebase sequences, and also provides commands and features that are useful on their own, such as running shell commands with the current Emacs instance exported as $EDITOR.

The manual explains how to configure With-Editor, including how it locates a suitable emacsclient executable and the "sleeping editor" fallback used for remote processes. It also describes using With-Editor as a library from other packages via the with-editor macro, and gives debugging guidance, including the M-x with-editor-debug command and the issue tracker at github.com/magit/with-editor.

What's inside

  • Using the With-Editor package
  • Configuring With-Editor
  • Using With-Editor commands
  • Using With-Editor as a library
  • Debugging
  • Command Index
  • Function Index
  • Variable Index

Frequently asked questions

What is the With-Editor package used for?

It is used internally by Magit when editing commit messages and rebase sequences, and it also provides commands and features that are useful by themselves, even without Magit.

What should I do if With-Editor cannot find a suitable emacsclient executable?

Open a new issue at https://github.com/magit/with-editor/issues and provide information about your Emacs installation, including the output of M-x with-editor-debug RET.

How can I always use the With-Editor variants of shell-command?

Either remap async-shell-command and shell-command to with-editor-async-shell-command and with-editor-shell-command in your init file, or use the global shell-command-with-editor-mode.

What is the sleeping editor in With-Editor?

It is a shell script used as the editor of child processes when the emacsclient executable cannot be used, for example for processes running on a remote machine via Tramp.

Download PDF (144 KB)

Also Manuals