March 27, 2006
Cool Emacs operation animation
在水木Emacs版上chunhui找到了这个动画,编辑C/C++文件的操作,太酷了。看了之后是不是就有努力学习坚持使用Emacs的决心了?用Emacs至少一个好处,就是可以一下变得貌似牛人。

水木的网友讨论了动画中功能的实现,摘抄下来:
发信人: ilovecpp (cpp), 信区: Emacs
C-SPC
#include <stdio.h>
…
#include <stdlib.h>
C-u 0 C-x a g includec RET
now create a new buffer and type
includec RETinfo/emacs/abbrevs for detail
发信人: hrothgar (faith, valor, wisdom), 信区: Emacs
see here:
http://www.bloomington.in.us/~brutt/msf-abbrev.html
我觉得他的想法不错, 其实函数声明可以自动生成. 扫描一下 glibc 头文件就可以了.
发信人: dryice (孤独的狼~~有了水木不再孤独~~), 信区: Emacs
已经有人做了,见 User-Contributed abbrevs 一节![]()
发信人: ann77 (ann), 信区: Emacs
其实也花不了太多的时间,想想你可以节省多少时间啊。
我自己就有很多类似的 abbrev
例如 main, newclass , stdioh, inc 等等,在我的主页上
或者以前的文章里都有。我觉得 abbrev 是一个很个人的东西,关键看你是否需要经常需要
输入同样的信息,这样配置 abbrev 就显得很值得。我给我的朋友“秀”我的emacs 的时候,他们对 main, newclass
的功能印象十分深刻,但是看到我的配置文件的时候,都望而却步。
依然不愿使用 emacs
发信人: smdavidth (瀧), 信区: Emacs
http://www.bloomington.in.us/~brutt/msf-abbrev.html
Filed by
charlie
at 1:29 pm under Tools
