我试图通过启动启动emacs守护进程。这是我的剧本
# emacs --daemon - Emacs daemon
#
# The Emacs daemon provides a server for Emacs clients.
description "Emacs daemon"
start on runlevel[2345]
stop on runlevel[!2345]
respawn
respawn limit 10 5 # respawn up to 10 times, waiting 5 seconds each time
pre-start sc
我试图跟随http://ergoemacs.org/emacs/building_埃马克斯_在……上面_linux.html安装Linux上的http://ftp.gnu.org/gnu/emacs/最新发布的emacs (24.5)版本(已安装了24.3 )。
执行我得到的第二步sudo apt-get build-dep emacs24:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source pack
我发现在Ubuntu18.04LTS上,我的emacs 24.5.1在复制和粘贴Unicode符号"⛔“(没有条目)或打开带有该字符的文件时崩溃。
我没有遇到另一个让emacs崩溃的Unicode符号(但我没有尝试过广泛的范围)。此外,vi和gedit都不会使用该字符崩溃。Firefox也正确地处理字符。
我收到的错误消息如下:
X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139
When compiled with GTK,
我试图使用Perl system调用将Emacs作为前台进程运行在终端窗口中。当我在终端窗口中按CTRL-C时,我想终止Emacs和Perl脚本。但是,只有Emacs命令终止。下面是一个示例脚本test.pl
#! /usr/bin/env perl
use strict;
use warnings;
my $cmd = shift;
for ( my $i = 1; $i <= 3; $i ++) {
my $res = system ($cmd);
if ( $res == -1 ) {
die "Failed to execute
刚刚在Windows 7下安装了Emacs 24
尝试在emacs中剪切和粘贴(kill & yank)时出现以下错误,例如
C-k, C-y
删除一行并将其复制到其他位置:
Symbol's function definition is void: x-cut-buffer-or-selection-value
我已经从我的.emacs中注释掉了以下内容,并重新启动了emacs,但错误仍然存在:
;; get copy and paste to work between emacs and other windows
;; (setq x-select-enable-clip
受Git的启发,当您键入"git commit“时,它会为您打开一个Emacs或Vim会话。我正在编写一个Erlang脚本,我希望它在脚本执行结束时打开一个Emacs会话。我试过了
os:cmd("emacs -nw file.txt")
但它似乎不起作用。在Erlang shell中评估上述命令会产生以下结果
"emacs: standard input is not a tty\n"
我使用的是Emacs for MacOSX24.2。一旦emacs被卡住,然后我终止了进程,但当我重新打开它时,显示了一些警告:
warning: desktop file appears to be in use by PID 200.
Using it may cause conflicts. Use it anyway? (y or n)
从那时起,每次我打开Emacs时都会显示消息,那么我们应该做什么来修复它呢?我对此真的很恼火。顺便说一下,我的操作系统是Mac os X 10.7.5
当尝试在RHEL 5.5上安装emacs时,我得到以下错误:
$ sudo yum install emacs
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package emacs available.
Nothing to do
我已经安装了rpmforge。当我尝试搜索emacs时,得到的结果如下:
=========================
几天前,我开始使用emacs,在emacs shell ()中使用git时遇到了一个问题。当我'git提交‘或'git提交-修改’,它打开vim编辑和保存提交消息。我同意,但我无法找到保存和退出vim的方法,因为点击ESC不会触发vim正常模式,而ESC是我的emacs metakey。我尝试将我的git编辑器更改为emacs,但它也不起作用,看起来emacs shell无法运行emacs,而且它也没有像我想的那样打开一个新的缓冲区。
emacs: Terminal type "dumb" is not powerful enough to run Emacs.
如果没有在我的Linux系统上安装Emacs,Bash命令行编辑默认模式仍然是Emacs。在没有Emacs的情况下,这是如何工作的?
我试着搜索Bash源代码,但还是无法理解。Bash是否将Emacs集成在自己的内部?
$ set -o
allexport off
braceexpand on
emacs on
: :
vi off
xtrace off