I looked around the GNU emacs material and didn't find anything helpful.
我查阅了GNU emacs的资料,没有发现任何有用的东西。
Does anyone know of a good tutorial for setting up emacs, to basically turn it into an IDE? I'm looking for interfacing with gcc/gdb/make, etc...
有没有人知道一个很好的设置emacs的教程,把它转换成IDE?我在寻找与gcc/gdb/make等的接口。
5 个解决方案
#1
16
Like other answers mentioned, M-x compile
, M-x gdb
will get you going. While debugging, I'd also suggest gdb-many-windows-mode
, which makes Emacs look a bit closer to IDE when debugging.
和前面提到的其他答案一样,M-x编译,M-x gdb将使您继续前进。在调试时,我还建议使用gdb-many-windows模式,这使得Emacs在调试时更接近IDE。
Besides that and to get closer to "IDE-like features", you can look at:
除此之外,为了更接近“理想特性”,你可以看看:
- CEDET http://cedet.sourceforge.net/ for code completion and project support. Excellent tutorial at http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html .
- CEDET http://cedet.sourceforge.net/用于代码完成和项目支持。优秀的教程在http://xtalk.msk.su/ ~奥特/ en /作品/ emacs-devenv / EmacsCedet。html。
- If you don't mind using non-free software, Xrefactory (http://www.xref.sk/xrefactory/main.html) is probably the best (well, the only) refactoring tool. The C version is free, the C++ is not.
- 如果你不介意使用非免费软件,Xrefactory (http://www.xref.sk/xrefactory/main.html)可能是最好的重构工具(嗯,也是唯一的)。C版本是免费的,c++不是。
#2
7
Yuval, you're probably being misled by looking for something about IDEs. All that stuff is automagically built into EMACS except for the CScope-like searching stuff.
尤瓦尔,你可能在寻找关于IDEs的东西时被误导了。除了类cscope的搜索内容外,所有这些内容都自动构建到EMACS中。
-
M-x compile
runs make by default, although I reset it to run Ant in java mode. - M-x编译运行默认设置为make,不过我将它重置为在java模式下运行Ant。
-
M-x gdb
runs gdb - m x gdb运行gdb
-
C-x `
(Ctrl-X backquote) goes to the next compile error - C-x ' (Ctrl-X反引号)进入下一个编译错误
and so on.
等等。
Go dig about in the EMACS Wiki. Lots of good stuff. The Programming Category is where you should look.
在EMACS的维基中挖掘吧。很多好东西。你应该关注编程类。
#3
2
篇好文章
Look at CScope too... you just have to add two lines to your .emacs to be able to navigate through definitions and references
看看CScope……您只需在.emacs中添加两行,就可以浏览定义和引用
#4
1
Even though not directly related to C/C++ i find that using a good color scheme is important. Try:
虽然与C/ c++没有直接关系,但我发现使用一个好的配色方案是很重要的。试一试:
M-x color-theme-select
and you can browse around a lot of different setups if you do not want to create your own.
如果你不想创建自己的设置,你可以浏览很多不同的设置。
#5
0
If you're working with version control system, you can find useful information in another my article about work with version control systems from emacs
如果您正在使用版本控制系统,您可以在我的另一篇关于使用emacs版本控制系统的文章中找到有用的信息
#1
16
Like other answers mentioned, M-x compile
, M-x gdb
will get you going. While debugging, I'd also suggest gdb-many-windows-mode
, which makes Emacs look a bit closer to IDE when debugging.
和前面提到的其他答案一样,M-x编译,M-x gdb将使您继续前进。在调试时,我还建议使用gdb-many-windows模式,这使得Emacs在调试时更接近IDE。
Besides that and to get closer to "IDE-like features", you can look at:
除此之外,为了更接近“理想特性”,你可以看看:
- CEDET http://cedet.sourceforge.net/ for code completion and project support. Excellent tutorial at http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html .
- CEDET http://cedet.sourceforge.net/用于代码完成和项目支持。优秀的教程在http://xtalk.msk.su/ ~奥特/ en /作品/ emacs-devenv / EmacsCedet。html。
- If you don't mind using non-free software, Xrefactory (http://www.xref.sk/xrefactory/main.html) is probably the best (well, the only) refactoring tool. The C version is free, the C++ is not.
- 如果你不介意使用非免费软件,Xrefactory (http://www.xref.sk/xrefactory/main.html)可能是最好的重构工具(嗯,也是唯一的)。C版本是免费的,c++不是。
#2
7
Yuval, you're probably being misled by looking for something about IDEs. All that stuff is automagically built into EMACS except for the CScope-like searching stuff.
尤瓦尔,你可能在寻找关于IDEs的东西时被误导了。除了类cscope的搜索内容外,所有这些内容都自动构建到EMACS中。
-
M-x compile
runs make by default, although I reset it to run Ant in java mode. - M-x编译运行默认设置为make,不过我将它重置为在java模式下运行Ant。
-
M-x gdb
runs gdb - m x gdb运行gdb
-
C-x `
(Ctrl-X backquote) goes to the next compile error - C-x ' (Ctrl-X反引号)进入下一个编译错误
and so on.
等等。
Go dig about in the EMACS Wiki. Lots of good stuff. The Programming Category is where you should look.
在EMACS的维基中挖掘吧。很多好东西。你应该关注编程类。
#3
2
篇好文章
Look at CScope too... you just have to add two lines to your .emacs to be able to navigate through definitions and references
看看CScope……您只需在.emacs中添加两行,就可以浏览定义和引用
#4
1
Even though not directly related to C/C++ i find that using a good color scheme is important. Try:
虽然与C/ c++没有直接关系,但我发现使用一个好的配色方案是很重要的。试一试:
M-x color-theme-select
and you can browse around a lot of different setups if you do not want to create your own.
如果你不想创建自己的设置,你可以浏览很多不同的设置。
#5
0
If you're working with version control system, you can find useful information in another my article about work with version control systems from emacs
如果您正在使用版本控制系统,您可以在我的另一篇关于使用emacs版本控制系统的文章中找到有用的信息