类似于组织模式,为了在Emacs中进行彩色注释,我想定义一些特殊字符(在行的开头使用)来告诉Emacs应该使用哪种颜色(前景色/背景)来突出显示整个当前行。有这方面的剧本吗?如果是,请告诉我如何使用它。
注释的一个例子:
# list of operating systems : << highlighted with red
@ Unix << highlighted with blue
@ Linux << highlighted with blue
@ Minix
我试图跟随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,
刚刚在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
当尝试在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时,得到的结果如下:
=========================
如果没有在我的Linux系统上安装Emacs,Bash命令行编辑默认模式仍然是Emacs。在没有Emacs的情况下,这是如何工作的?
我试着搜索Bash源代码,但还是无法理解。Bash是否将Emacs集成在自己的内部?
$ set -o
allexport off
braceexpand on
emacs on
: :
vi off
xtrace off