免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: flw

有关 Emacs 使用技巧的内容请在这个帖子讨论。 [复制链接]

论坛徽章:
0
发表于 2007-01-03 02:29 |显示全部楼层
通过SecureCRT 5.2,ssh连接到solaris10上,运行emacs后,发现emacs 20.7,默认的BackSpace键,不能执行删除命令。只能使用del键来删除,请问,如何配置.emacs才能使BackSpace键有删除的功能?

论坛徽章:
0
发表于 2007-01-03 14:45 |显示全部楼层
原帖由 Ecore 于 2007-1-3 02:29 发表
默认的BackSpace键,不能执行删除命令。只能使用del键来删除,请问,如何配置.emacs才能使BackSpace键有删除的功能?

这应该也和emacs无关。是你的terminal设置问题。你在命令行应该也是能用del删把。
你看看secure crt 把 backspace 匹配成什么了(我没用过secure crt),再看看erase设成什么了( stty -a | grep erase )

论坛徽章:
0
发表于 2007-01-05 14:26 |显示全部楼层
请问windows下 emacs23怎么安装新的字符集呢

论坛徽章:
0
发表于 2007-01-08 17:28 |显示全部楼层
如果不启动emacs,在shell中我的backspace键是可以执行删除功能的。。

论坛徽章:
0
发表于 2007-01-08 17:35 |显示全部楼层
原帖由 lgfang 于 2007-1-3 14:45 发表

这应该也和emacs无关。是你的terminal设置问题。你在命令行应该也是能用del删把。
你看看secure crt 把 backspace 匹配成什么了(我没用过secure crt),再看看erase设成什么了( stty -a | grep erase )




root@sola10[/]#clear

root@sola10[/]#emacs --v
GNU Emacs 20.7.1
Copyright (C) 1999 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
root@sola10[/]#stty -a
speed 38400 baud;
ÐÐÊý£½40£¬ÁÐÊý£½111£»ypixels = 0£»xpixels = 0£»
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
root@sola10[/]#


不启动emacs,在shell中,我的BackSpace键是可以正常使用的.

论坛徽章:
0
发表于 2007-01-10 08:34 |显示全部楼层

请问一个emacs在终端下的着色问题

如何使emacs在终端下也能显示语法着色?
(搜索等操作是能显示彩色)
谢谢。

论坛徽章:
0
发表于 2007-01-10 21:43 |显示全部楼层
我想把emacs下的tab用4个空格来替换,这样每次tab输出的都是4个空格,不知道应该如何修改设置啊?

多谢~~

论坛徽章:
0
发表于 2007-01-23 10:34 |显示全部楼层
楼上的肯定没有仔细看帖子 本贴里面有的 而且网上放出的大部分的.emacs文件里面都有相关的设置
(setq default-tab-width 4)

论坛徽章:
0
发表于 2007-01-23 10:35 |显示全部楼层
原帖由 Magicloud 于 2007-1-10 08:34 发表
如何使emacs在终端下也能显示语法着色?
(搜索等操作是能显示彩色)
谢谢。


这个 在前面的帖子里面好像也有提到过 不过 答案是不能

论坛徽章:
0
发表于 2007-01-24 18:12 |显示全部楼层
原帖由 Magicloud 于 2007-1-10 08:34 发表
如何使emacs在终端下也能显示语法着色?
(搜索等操作是能显示彩色)
谢谢。


这有两方面因素:一是emacs要告诉终端;二是终端是否支持或支持到哪种程度。

对于emacs这方面,能做的就是在配置文件里加上这个
(global-font-lock-mode t)
或者打开文件后
M-x font-lock-mode
试试

至于终端,我在windows下用putty。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP