Several times recently left the seat that I had been sitting in, went to another computer room examination.
Then suddenly remembered to remember the simple configuration of Emacs.
The Noip of the remnants of the memory to pick up a little more ...
Attach some explanations
(global-set-key [f9] ‘compile-file);;一键编译(弄Devcpp留下来的习惯)(global-set-key (kbd "C-z") ‘undo);;一键撤销(Like Windows)(global-set-key (kbd "C-q") ‘kill-this-buffer);;一键关闭;;(蒟蒻总是搞死循环,关掉麻烦死啦)(global-set-key (kbd "RET") ‘new-line-and-indent);;换行时自动缩进(defun compile-file()(interactive)(compile(format "g++ -o %s %s -lm -Wall"(file-name-sans-extension(buffer-name))(buffer-name))));;编译指令(真TM难记)(show-paren-mode t);;括号匹配还是舒服点(global-linum-mode t);;显示行号(setq kill-ring-max 200);;撤销的缓存开大点(setq default-cursor-type ‘bar);;把光标变成条,一块真的看不爽(用VIM的Dalao请无视)(setq default-tab-width 4);;默认tab宽度(setq c-default-style "awk");;缩进风格(set-background-color "gray15");;背景颜色(白的太亮了)(set-foreground-color "gray");;前景颜色也要跟着改(set-frame-parameter (selected-frame) ‘alpha (list 85 50));;透明度;;(一边敲代码一边看题还是舒服多了)
In addition, using the Windows Cut Copy paste key, directly change the preferences bar use CUA keys
I'm still too weak to get used to these little things.
The Dalao are not 10 lines ...
Emacs Configuration (Test room prerequisites) (emacs)