ubuntu14.04 Emacs 24 Configuration

Source: Internet
Author: User

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)))

  

    • Increase Speedbar

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.