摘要: 在Emacs下用C/C++编程 版权说明和参考文献 按照惯例,我写的文章在最开始处放版权说明和参考文献。 参考文献: hhuu @ newsmth 的《Emacs的日常生活》 emacs 的文档 emacs 相关插件的文档 版权说明: 转载请注明转自曹乐的个人主页 www.caole.net,请保证全文转载,尤其不可省略这一部分。 序 用emacs写程序也有5个年头了,深切地体会到Emacs的... 阅读全文
posted @ 2010-01-28 17:39 napoleon_liu 阅读(2835) 评论(0) 推荐(0) 编辑
摘要: 小写字母开头的 常量 是 erlang 中的原子,它相当于ruby 中的符号。 阅读全文
posted @ 2010-01-28 17:28 napoleon_liu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: This article doesn't pretend to represent detailed description of customization of Emacs as development environment (this is theme for separate article). I just tried to provide a small description ... 阅读全文
posted @ 2010-01-28 17:27 napoleon_liu 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 1. Emacs 自带的hippie-expand (参考的是王垠的) hippie-expand是 Emacs 自带的功能, 把M-/ 绑定到 hippie-expand,在.emacs文件中加入 ;;绑定按键 (global-set-key [(meta ?/)] 'hippie-expand) hippie-expand 的补全方式。它是一个优先列表, hippie-expand 会优先... 阅读全文
posted @ 2010-01-28 17:01 napoleon_liu 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 配置 回退键.emacs 文件中加入(define-key global-map "\C-h" 'delete-backward-char)(define-key global-map "\C-x?" 'help)这样就可以使用 C-h 来删除字符了。(帮助改为了 C-x ?)换行用 C-j (这会产生自动对齐) 回车使用 C-m撤消使用 C-/重做使用 C-x z (或 C-x ESC ESC... 阅读全文
posted @ 2010-01-28 10:57 napoleon_liu 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 注释 M-;(alt 键加 分号键) 要在下一行添加注释用 M-jM- - 表示 反的意思C-u 表示 参数 默认是4格式化 C-M-\全选 C-x h换行 C-j合并行 M-^跳到第N行 M-G M-G撤 销(undo) C-/ 或 C-x u 或 C - M - _重做(redo) C-x z自动补全 M-/ 或 C-M-/ (会显示列表)cscope 查找符号 C-c s s查找定义... 阅读全文
posted @ 2010-01-28 10:54 napoleon_liu 阅读(555) 评论(0) 推荐(0) 编辑