Purpose: To configure Emacs 24 for programming development
Main reference Jerryzhang configuration (Emacs easy tutorial)
Http://www.perfect-is-shit.com/emacs-simple-tutorial.html#tocAnchor-1-16-5
Https://gitcafe.com/JerryZhang/Emacs-Config
Advantages: The plug-in less basic functions are relatively full, emacs configuration after the start of a relatively fast
The installation process is as follows:
git clone https://gitcafe.com/JerryZhang/emacs-config.git ~/.emacs.d (后面的地址可更换,下载后复制到~/.emacs.d目录下)
cd ~/.emacs.d/lisp/helm && make
After installation is complete
Init.el changing content
显示行号.去掉(global-linum-mode 1)前的分号(;)
- Add shortcut keys to toggle buffer
;; ------------------------------------------------------------------------------;; Quickly switch to the first buffer;; Shift+tab switch to the first buffer;; ------------------------------------------------------------------------------(Global-set-key (kbd "<backtab > ") # ' (Lambda () (interactive) ( Switch-to-buffer (Other-buffer (current-buffer) 1)))
Download Sr-speedbar.el to. Emacs.d/lisp Directory
Init.el Adding code
;; ------------------------------------------------------------------------------;; Use speedbar <F2> switch on the speedbar of the open state;; S key to search for U key in Speedbar back to previous directory;; ------------------------------------------------------------------------------(Require ' Sr-speedbar) ( Global-set-key (kbd "<f2>") (Lambda () (interactive) ( Sr-speedbar-refresh) ( sr-speedbar-toggle) (unless (sr-speedbar-exist-p) (kill-buffer "*speedbar*")))) (Require ' Speedbar) (Define-key Speedbar-mode-map (kbd "s") # ' (Lambda () ( Interactive) ( Beginning-of-buffer) ( Isearch-forward))) (Define-key speedbar-mode-map (kbd "U") # ' (Lambda () ( Interactive) ( speedbar-up-directory)))
Other configurations to refer to:
C + + development environment for EMACS
Http://tuhdo.github.io/c-ide.html
A year to become a master of Emacs (like God using the editor)
http://blog.csdn.net/redguardtoo/article/details/7222501
When you use GDB to debug a program
M-x gdb to open GDB debugging first
Then m-x gdb-many-windows use multiple windows to view the debugging process
ubuntu14.04 Emacs 24 Configuration