Nov 18. one day after
2010-11-18 19:36
281 查看
emacs的键盘宏很好用啊
1 define a kbd macro
start by C-x (
end by C-x )
Give the last kbd macro a name:
2 name a kbd macro
M-x name-last-kbd-macro
we just need type M-x name, then press tab key. :)
3 eternal
If we want use the kbd macro after we restart emacs,
write it into the .emacs configure file.
open your .emacs file
M-x insert-kbd-macro
then give emacs the macro name you want save and press enter
4 key binding
Sometimes, we use a kbd macro often, then we could bind the macro
to a quick key by
(global-set-key "/C-cm" 'macro-name)
here /C means ctrl key. '-' means and.
×××××××××××××××××××××××××××××××××××××××××××××××××
×××××××××××××××××××××××××××××××××××××××××××××××××
对于const的使用心得:
只需将const右面的内容括起来即可,const只修饰其右面的内容
例如:
const (int *p)-->指向整型常量的指针
int const (*P)-->同上
int * const (p)-->指针是常量,其指向的值可变。
1 define a kbd macro
start by C-x (
end by C-x )
Give the last kbd macro a name:
2 name a kbd macro
M-x name-last-kbd-macro
we just need type M-x name, then press tab key. :)
3 eternal
If we want use the kbd macro after we restart emacs,
write it into the .emacs configure file.
open your .emacs file
M-x insert-kbd-macro
then give emacs the macro name you want save and press enter
4 key binding
Sometimes, we use a kbd macro often, then we could bind the macro
to a quick key by
(global-set-key "/C-cm" 'macro-name)
here /C means ctrl key. '-' means and.
×××××××××××××××××××××××××××××××××××××××××××××××××
×××××××××××××××××××××××××××××××××××××××××××××××××
对于const的使用心得:
只需将const右面的内容括起来即可,const只修饰其右面的内容
例如:
const (int *p)-->指向整型常量的指针
int const (*P)-->同上
int * const (p)-->指针是常量,其指向的值可变。
相关文章推荐
- Algorithm One Day One -- 约瑟夫环(丢手绢问题)
- OneDayOneClass----UIAlertView
- #DayOne#,分别用循环和递归的方式实现阶乘
- Roman Was Not Built in One Day
- [one day one question] GIF动画为什么只动一次不能循环
- If One Day...
- SpringDayOne
- Day One studying english
- Linux - one command per day--file
- Linux - one command per day--cp
- Python开发基础-Day18继承派生、组合、接口和抽象类
- 《从零开始学Swift》学习笔记(Day 18)——有几个分支语句?
- THE DAY AFTER TOMORROW
- One word One day(PEDANT)
- One day trip to Jakarta Indonesia
- Learn these technical skills within one day
- Just one day
- Day 18: BoilerPipe —— Java开发者的文章提取工具
- One day one cf,Keep Wa away from me.
- I will be Back one day