LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 06-04-19, 21:30 第 1 帖
slinger
 
slinger 的头像
 
 
注册会员  
  注册日期: Nov 2003
  帖子: 337
  精华: 0
 

标题: 独立界面的emacs有什么好处呢?


我的意思是指那种用了gtk,自己拥有一个独立X界面运行的emacs,。
我自己是一直在一个terminal里面运行emacs的,因为X11 terminal比如xterm/rxvt之类的,都会使用X的字体,所以字体配置从来都不是问题,emacs自然会用你为xterm设定的字体。我以前也曾费劲地去搞emacs的中文显示问题,但是后来发现这个意义真的不大,就在xterm里面运行emacs,什么问题都没有了。
因为没有怎么用过不用-nw参数启动的emacs,所以现在想知道那样有X11支持的emacs有什么更强或者更好的特性吗?能带来什么特别的方便吗?对了,可能鼠标事件的响应是要好很多吧,但是我想用emacs的本意可能就是不想经常去摸鼠标吧。







__________________
Desktop: core 2 duo E6550, 2G, march=core2, accepted keywords="x86"
Server: Xeon 5335x2, 10G, march=core2, accepted keywords="x86"
LaptopA: Sony PCG-C1MAH: crusoe867MHz, 256M, march=i686, accepted keywords="x86"
LaptopB: Sharp: T8300,3G,160G,march=core2,accepted keywords="x86"
LaptopC: ThinkPad X200: P8600,2G,250G,march=core2,accepted keywords="x86"
  slinger 当前离线   回复时引用此帖
旧 06-04-21, 11:21 第 2 帖
galilette
 
 
 
注册会员  
  注册日期: Oct 2002
  帖子: 186
  精华: 0
 

这个...

比如auctex下, 上下标能用不同大小和位置的字体来做fontlock. term里fontlock就只有颜色之分了吧


又比如preview-latex可以在当前buffer里on the fly显示typesetting的效果,公式多的话很方便的, -nw的emacs就不行

http://www.gnu.org/software/auctex/preview-latex

再比如 imaxima 可以捕捉inferior maxima的tex输出然后以图片形式显示计算结果的公式

http://members3.jcom.home.ne.jp/imax...e/Welcome.html

怎么方便怎么用嘛何必放着鼠标不用呢
  galilette 当前离线   回复时引用此帖
旧 06-04-30, 11:46 第 3 帖
哈哈鬼
 
哈哈鬼 的头像
 
 
注册会员  
  注册日期: Mar 2003
  我的住址: 黑黑的夜
  帖子: 988
  精华: 3
 

大部分时候用鼠标是比较低效率的
能少用就少用,习惯了以后就不想用了,呵呵

X下的Emacs可以用tab呀,多爽……
至于字体,有时候确实也很头疼,term下就爽歪歪

即爱又恨吧!







__________________
hahaghost AT 163 DOT com
______________________
态度决定一切,心是你梦想开始的地方……
  哈哈鬼 当前离线   回复时引用此帖
旧 06-05-01, 22:57 第 4 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

terminal下面用speedbar不方便,而且独立界面可以定义的快捷键比终端下多,比如Ctrl+Enter,如果是在纯终端下,我甚至不能用Alt来按M- ,只能去按老远的ESC,好麻烦。
  pluskid 当前离线   回复时引用此帖
旧 06-05-02, 18:58 第 5 帖
whiz
 
 
 
注册会员  
  注册日期: Feb 2004
  帖子: 169
  精华: 0
 

我在termianl下能用右边的alt键作M-,左边的不行。
  whiz 当前离线   回复时引用此帖
旧 06-05-02, 22:32 第 6 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

引用:
作者: whiz
我在termianl下能用右边的alt键作M-,左边的不行。
请问这是为何?
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 09:17 第 7 帖
whiz
 
 
 
注册会员  
  注册日期: Feb 2004
  帖子: 169
  精华: 0
 

不知道,我是个新手....
  whiz 当前离线   回复时引用此帖
旧 06-05-03, 10:04 第 8 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

这个应该是配置问题吧,因为我在终端下面是只能用左边的Alt,不能用右边的,而且,Alt一般是右边的用得比较多的——M-x 是很常用的嘛。
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 10:39 第 9 帖
galilette
 
 
 
注册会员  
  注册日期: Oct 2002
  帖子: 186
  精华: 0
 

if you encounter the problem in x terminal emulators then it probably can be solved by some conf mod.
e.g., for xterm add the following line to ~/.Xresources:
引用:
XTerm*metaSendsEscape: true
I use urxvt so there is no such problem.

If you mean a virtual terminal, the ones you switch to by (ctrl-)alt-Fx, it might be due to different reasons. If it's due to the keymap you are using, then you may try
引用:
loadkeys emacs
which is a keymap that enabled many mod combinations. see
引用:
/usr/share/keymaps/i386/qwerty/emacs.map.gz
another probability could be that `alt' is set to modify higher bits. then use
引用:
setmetamode esc
to let `alt' send escape sequences
  galilette 当前离线   回复时引用此帖
旧 06-05-03, 12:42 第 10 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

引用:
作者: galilette
if you encounter the problem in x terminal emulators then it probably can be solved by some conf mod.
e.g., for xterm add the following line to ~/.Xresources:

I use urxvt so there is no such problem.

If you mean a virtual terminal, the ones you switch to by (ctrl-)alt-Fx, it might be due to different reasons. If it's due to the keymap you are using, then you may try

which is a keymap that enabled many mod combinations. see


another probability could be that `alt' is set to modify higher bits. then use

to let `alt' send escape sequences
我确实是指的Ctrl-Alt-Fx得到的那种虚拟终端里面。不过,我执行了
代码:
loadkeys emacs
之后还是一样,只有左边的Alt能用,右边的不能用。
我又执行了
代码:
setmetamode esc
可是问题依旧,是怎么回事呢?:ask
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 12:45 第 11 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

我看了还有一个emacs2.map.gz,我加载那个东西仍然是不行的。
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 14:01 第 12 帖
galilette
 
 
 
注册会员  
  注册日期: Oct 2002
  帖子: 186
  精华: 0
 

Oh I see. I was thinking you cannot use the left alt as the meta key.

Actually the right alt is reserved as AltGr. to see this, invoke
引用:
dumpkeys | grep Gr
and the keycode associated should be 100, which is the right alt key. This 100 can be obtained by running
引用:
showkeys
and then pressing your right alt key.

So, to assign the right alt as meta, you can now invoke
引用:
echo 'keycode 100 = Alt' | loadkeys
  galilette 当前离线   回复时引用此帖
旧 06-05-03, 15:44 第 13 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

引用:
作者: galilette
Oh I see. I was thinking you cannot use the left alt as the meta key.

Actually the right alt is reserved as AltGr. to see this, invoke

and the keycode associated should be 100, which is the right alt key. This 100 can be obtained by running

and then pressing your right alt key.

So, to assign the right alt as meta, you can now invoke
哈哈!谢谢galilette,这下弄好了!不过有几点:
1。是 showkey 不是 showkeys ,我好不容易才从那个程序里面退出来,好像是等一会不按任何键就可以退出了。
2。光echo 'keycode 100 = Alt' | loadkeys是不行的,反正这样好像把键搞得乱七八糟的,我拷贝了/usr/share/keymaps/i386/qwerty/emacs.map.gz并把那行添加进去,在加载他就可以用了!
这下好了!呵呵!谢谢!
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 15:47 第 14 帖
pluskid
 
pluskid 的头像
 
 
注册会员  
  注册日期: Jul 2004
  帖子: 1,322
  精华: 1
 

:ask: loadkeys 好像要root权限才能执行的,把他添加到哪个文件里面让他开机自动执行比较合适呢?
  pluskid 当前离线   回复时引用此帖
旧 06-05-03, 15:51 第 15 帖
galilette
 
 
 
注册会员  
  注册日期: Oct 2002
  帖子: 186
  精华: 0
 

/etc/conf.d/local.start
  galilette 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 12:03


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org