- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
ssh -X root@localhost "emacsclient -c"
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
emacsclient: could not get terminal name
我已经用谷歌搜索了,但找不到解决问题的方法。
更新:我认为 emacs 客户端(在本地机器上)连接到 emacs 服务器(在远程机器上),以便 emacs 客户端可以在本地机器上编辑文件。但它似乎并没有那样工作......
最佳答案
将 emacsclient 与远程转发一起使用有点棘手(并且行为可能在某些时候已被修复/更改)。
您可以做的一件事就是正常地通过 ssh 连接到服务器,并将当前的 ssh 显示显式传递给 emacs:
emacsclient -c -d $DISPLAY
还在 emacsclient wiki 上找到了这个:
ssh remote_host -f emacsclient --eval ‘”(make-frame-on-display \”$DISPLAY\”)”’
更新:
因为 emacs 似乎不喜欢 ":0"显示,尝试明确地写出来:
emacsclient -c -d localhost:0
关于linux - emacsclient:无法获取终端名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7626841/
当我运行 emacsclient 时,它不响应鼠标点击。我的主要 Emacs 进程在终端中运行并正确响应鼠标点击,因为我的 Emacs 配置文件中有以下代码: (xterm-mouse-mode 1)
运行 emacsclient 后如何始终控制窗口焦点? 目前,重点取决于我是否已经运行了 emacs 服务器。当 emacsclient 调用替代编辑器时,焦点将转移到新的 emacs 窗口。当 em
我正在尝试为 emacsclient 设置字体,如下所示: (let ((default-font (cond ((member "Inconsolata"
如果我执行以下操作,我会遇到问题: 我启动一个 emacs 服务器('emacs --daemon') 我启动客户端 ('emacsclient -c'),然后打开文件 foo.txt。 我启动另一个
当我启动时,我启动 emacs --daemon它评估我的 .emacs 但有一个异常(exception): (add-to-list 'load-path "~/.elisp/zenburn-em
在前台模式下运行时,Emacs 会正确插入非拉丁语输入。 当我以 emacs --damon 运行它时+ emacsclient ,开始疯狂。每个应该插入一个字符的按键都会导致一个 Action ,比
我试图在 Emacs 中找到一个钩子(Hook),它应该在 Emacs 服务器正常关闭之前触发。 我尝试了使用 elisp 的 kill-emacs-query-functions、kill-emac
这是一个相当基本的问题,但是在 emacs 的单独框架(make-new-frame)中打开新文件或在 emacsclient 的实例中打开文件之间有什么实际区别?我可以看到,如果您通过终端工作,差异
我想知道如何在新的最大化框架中启动 emacsclient。 emacsclient -c 启动一个新框架,但手册页指示无法最大化此框架。没有像 --maximized 这样的选项. 警告:这不是来自
ssh -X root@localhost "emacsclient -c" Warning: untrusted X11 forwarding setup failed: xauth key dat
我最近安装了 Emacs 23(在 OS X Leopard 上)并试用了 emacs 服务器。我尝试了两种方法:(1) 将 (server-start) 放在我的 .emacs 文件中,以及 (2)
我有一个程序可以将文本发送到任何其他程序以进行进一步分析(例如 sed、grep 等)。我希望它将数据发送到 Emacs 并在那里进行分析。我该怎么做? EmacsClient 默认采用文件名,这是一
如果我运行 emacs --daemon (在 .xinitrc 或更高版本中)然后是 emacsclient -c , 新创建的框架具有黑色光标颜色,无论颜色主题或任何其他设置。更确切地说,在我输入
我最近切换到 emacsclient 进行大多数文本编辑。我正在尝试将我的一些设置迁移到新的(略有不同的)环境。 特别是,在我的 .emacs 文件中,我有一个设置窗口大小和准备一些主题的函数。然而,
模式在这里:http://emacswiki.org/emacs/AutoComplete 在底部: I have a black background and when I use auto-com
我最近升级到 Emacs 23 附带的 Ubuntu 10.04。我需要 Jabref 将引文推送到 Emacs。 然而,尽管我安装了 Jabref 插件来通过 emacsclient 推送引文,但它
你好吗关闭 emacsclient 框架而不终止服务器/守护进程 ? 做 C-x C-c或 C-x 5 0在 gui 中将退出框架和服务器(以及其他客户端),而这只是在从终端完成时退出当前框架。 (P
我总是将 emacs 作为守护进程运行,但是当我想做一些类似的事情时 sudo emacsclient /etc/make.conf 我不能这样做,因为 root 正在使用另一个 emacs,我真的不
我打电话后才知道(start-server)在现有的 Emacs session 中,我可以使用 emacsclient -c (在同一台计算机上)创建连接到该服务器的新框架,以便由 emacscli
在编译源代码的过程中,我希望 GNU Make 调用一个 emacs defun。为此,我有 2 个选择: 启动一个新的 emacs 实例,加载所需的函数并调用它。 像这样从 emacsclient
我是一名优秀的程序员,十分优秀!