使用来自多个(虚拟)机器的单个emacs实例 [英] Using a single emacs instance from multiple (virtual) machines

查看:146
本文介绍了使用来自多个(虚拟)机器的单个emacs实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我爱emacsclient。它允许我使用单个Emacs框架进行所有的编辑,当程序想要打开一个编辑器(即 export EDITOR = emacsclient )时,也可以使用一个Emacs框架。



我也想用虚拟机这样工作。我可以使用流浪汉在我的单帧设置中使用Emacs编辑远程文件,它的效果非常好,但还不够。当我调用 git commit sudoedit 时,我将不得不使用基于终端的基于编辑器的错误安装在远程机器上。



那么,有没有像emacsclient在多台机器上工作?

推测:如果您可以从虚拟机将ssh还原到本地计算机,那么虚拟机可能会在本地计算机上调用emacsclient,并将适当的流氓前缀添加到远程文件?设置一个脚本,并配置您的远程EDITOR环境变量以匹配。


I love emacsclient. It allows me to use a single Emacs frame for all my editing, also when programs want to open an editor (i.e. export EDITOR=emacsclient).

I'd like to have it work like this with virtual machines, too. I can use tramp to edit remote files with Emacs in my single-frame setup, and it works very well, but it's not enough. When I invoke git commit or sudoedit, I'll have to use the crappy terminal-based editor that happens to be installed on the remote machine.

So, is there anything like emacsclient that works across multiple machines?

解决方案

Speculation: If you can ssh from the VM back to your local machine then the VM could probably invoke emacsclient on your local machine, with the appropriate tramp prefix to the remote file? Set up a script for that, and configure your remote EDITOR environment variable to match.

这篇关于使用来自多个(虚拟)机器的单个emacs实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆