emacs -nw与cscope和终端的问题 [英] emacs -nw issues with cscope and terminals

查看:231
本文介绍了emacs -nw与cscope和终端的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在窗口中的emacs几个问题。任何帮助都不胜感激。

Few issues with emacs in term windows. Any help is appreciated.

a。我启动emacs over ssh与emacs -nw启用cscope。在我搜索符号或定义后,在cscope缓冲区中,当我按'enter'时,emacs表示 - Buffer是只读的。而使用xwindows(gtk或其他任何东西)的emacs上的相同功能需要我到编辑缓冲区的文件和行。我如何与emacs -nw具有相同的功能。

a. I start emacs over ssh with emacs -nw with cscope enabled. After I search for a symbol or a definition, on the cscope buffer when i press 'enter', emacs says - Buffer is read-only. Whereas the same functionality on emacs with xwindows (gtk or anything else) takes me to the file and line on edit buffer. How can I have the same functionality with 'emacs -nw'.

b。编辑/源缓冲区上的箭头标记当我从cscope缓冲区下一次引用符号时,就保留在编辑缓冲区上。我该怎么办?

b. Also the arrow mark on edit/source buffer when i do next reference for symbol from cscope buffer stays on the edit buffer. How can I make it go?

c。我的键被映射到cscope函数,就像在xcscope.el中一样。所有的控制键都可以使用Ctrl-F3和Ctrl-F4。

c. My keys are mapped to cscope functions just like in xcscope.el. All the control keys expect Ctrl-F3 and Ctrl-F4 work. How can I enable this too.

非常感谢

推荐答案

一个。将以下内容添加到.emacs文件中:

a. Add the following to your .emacs file:

(define-key global-map (kbd "\r") [return])

我从 http://weenix.cs.brown.edu/mediawiki/index.php/Cscope

b。如果您打开cscope缓冲区中的空格键,您将得到箭头。这只是一个显示的东西;该文件没有更改。如果你想摆脱它,请将以下内容添加到.emacs文件中:

b. If you hit the space bar in the cscope buffer, you will get the arrow. It's just a display thing; the file has not changed. If you want to get rid of it, add the following to your .emacs file:

(setq cscope-allow-arrow-overlays nil)

这篇关于emacs -nw与cscope和终端的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆