Skip to content

Commit

Permalink
feat(ext): Add emacsclient as an editor option (#158)
Browse files Browse the repository at this point in the history
`emacsclient` asks an existing Emacs process to open the file.  For many
users, this is likely to be more appropriate than the existing Emacs
option, which always starts a new `emacs` process to edit the email.
  • Loading branch information
mavit authored Jan 30, 2025
1 parent 65fcccc commit e32a472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<select name="editor" id="editor">
<option value="nvim">Neovim</option>
<option value="vim">Vim</option>
<option value="emacsclient">Emacs (Client)</option>
<option value="emacs">Emacs</option>
<option value="kak">Kakoune</option>
<option value="neovide">Neovide</option>
Expand Down
1 change: 1 addition & 0 deletions extension/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Editor {
const editors = {
'nvim': new Editor('nvim', false),
'vim': new Editor('vim', false),
'emacsclient': new Editor('emacsclient --alternate-editor= --reuse-frame', true),
'emacs': new Editor('emacs', true),
'kak': new Editor('kak', false),
'neovide': new Editor('neovide --no-fork', true),
Expand Down

0 comments on commit e32a472

Please sign in to comment.