Emacs 作为 C 编程 IDE 配置?
我使用 emacs 作为 C 语言编程的主要 IDE。我正在探索配置 emacs 的方法,使其更多地充当 IDE 而不是简单的文本编辑器。当然,我想要语法突出显示,最好是一些代码完成。我还想要单独的缓冲区来允许 shell 命令和 Mx 编译。我希望它在访问 C 源文件时自动打开这种多缓冲区形式,而不必单独启动每个缓冲区。我将主要使用它来进行 Linux/BSD Unix 开发,不过我也在 Mac OS X(又是 Unix)和 Windows(Windows 7 64 位)上进行编码。
我探索了 Phil Hagelberg (technomancy) 发布的 Emacs 入门工具包,但它似乎非常面向动态语言和 git 的使用。我主要使用 emacs 进行 C 开发,使用 Mercurial 进行 VC 开发。我也是一个相对新手,配置 emacs 对我来说相对令人畏惧。
我现在正在使用 CEDET 和 Emacs 代码浏览器 (ECB) 包,它更符合我想要的,但仍然不完美。
欢迎任何关于将 emacs 定制为 C 编程 IDE 的建议。
I use emacs as my main IDE for programming in C. I am exploring ways of configuring emacs to function more as an IDE rather than as a simple text editor. Of course I want syntax highlighting and preferably some code completion. I also want separate buffers to allow shell commands and to M-x compile. I want it to open into this multi-buffer form automatically when visiting a C source file, rather than having to launch each buffer separately. I will be using this mainly for Linux/BSD Unix development, though I also code on Mac OS X (again Unix) and Windows (Windows 7 64bit).
I explored the Emacs starter kit posted by Phil Hagelberg (technomancy), but it seems very oriented towards dynamic languages and use of git. I use emacs mainly for developing in C and use mercurial for VC. I am also a relative newbie making configuration of emacs relatively daunting for me.
I am now playing with CEDET and the Emacs Code Browser (ECB) package which is more along the lines of what I want, but is still not perfect.
Any suggestions on customizing emacs as a C programming IDE welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
自从我完成 C 以来已经有一段时间了,但这里有一些建议。
将照顾flymake。 这当您在子目录中编辑但想要从顶部编译时非常有用。
祝你好运。
It's been a while since I've done C but here are a few pointers.
would take care of flymake. This is useful when you edit in subdirectories but want to compile fromt he top.
git
and so I use magit instead. There should be similar options for mercurial.Good luck.
阅读这篇关于如何配置 CEDET 的优秀指南。我还建议您同时使用 cscope 和 ECB。正如 Noufal 已经提到的,自动完成和 Flymake 非常有帮助。我还建议您自动配对模式。
Read this excellent guide on how to configure CEDET. I'd also advise you to use cscope and ECB alongside it. As Noufal already mentioned autocomplete and flymake are very helpful. I'd also recommend you autopair mode.
我没有尝试 Emacs-IDE 但它看起来很有用并且可能对你有帮助
i didn't try out Emacs-IDE but it seems useful and may help you