Comments (5)
That's what emacsclient file
is supposed to do, even without with-editor
. If that doesn't work for you, then that probably means that you didn't start the server in the running emacs
instance.
from with-editor.
emacsclient
kind of does it, but if I have several instances it will always choose another one.
I wonder if there is a way to make it work seamlessly for ne
and emacs
commands though.
from with-editor.
I don't know what ne
is, some wrapper script I suppose? But for emacs
the answer is no, that always starts a new instance. As for emacsclient
always choosing another instance: I think it always uses the instance which uses the default socket (and that's always under the control of the first instance you started). But really I don't use emacsclient
except for committing with magit
/with-editor
, so you should ask elsewhere for help.
And to answer your original question: no, with-editor
cannot help with this scenario, or be made to do so. I suspect that you will end up having to write a shell-script which wraps emacs
and emacsclient
. I once wrote one, but I am afraid I lost it. But there most be others in the wild.
from with-editor.
Ok, thank you so much for your insights, that was really helpful ! π
I thought for the longest time that with-editor
could help me with that, but I guess I never dug deep enough to realize that no.
Well, I guess I'll see you around ! Take care and thank you for the awesome Magit !
from with-editor.
Your welcome!
from with-editor.
Related Issues (20)
- `export` output on new terminal buffers HOT 2
- No output in eshell on with-editor export HOT 2
- with-editor fails in term-mode. HOT 10
- `git` not found, despite `magit-git-executable` being set. HOT 15
- sleeping editor does not set `with-editor-previous-winconf` HOT 4
- Cannot commit from Magit on Windows 11
- magit-commit editor breakage after updating emacs master HOT 12
- unexpected EOF while looking for matching `'' trying to edit agenix secret with `agenix -e` HOT 1
- Cannot determine a suitable Emacsclient HOT 2
- shell-commands not seeing $EDITOR override HOT 5
- EDITOR setting in vterm breaks remote programs calling EDITOR HOT 2
- When cancelling an edit, why do we send USR2 instead of USR1? HOT 4
- homebrew emacs-plus breaks with-editor--setup HOT 10
- Can't call emacsclient.exe on Windows HOT 7
- [BUG] make-process--with-editor-process-filter: Creating pipe: Too many open files HOT 6
- Emacs Snap installation - unable to commit via magit HOT 3
- Failure after update of Emacs from 28.2 to 29.1 HOT 1
- shell-command-with-editor-mode: path is treated as local for remote files HOT 2
- `magit-status' reports failed to provide feature βwith-editorβ HOT 39
- Tag latest release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from with-editor.