The version of a single emacs file is continuously modified.

Source: Internet
Author: User
; All plug-ins are decompressed ~ /. Emacs. d directory ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; basic configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (add-to-list 'Load-path "~ /. Emacs. d "); display the line number (require 'linum) (Global-linum-mode t); do not generate a temporary file (setq-default make-backup-files nil );; disable start information (setq inhibit-startup-message T); and auto-complete brackets (defun my-mode-auto-pair () (interactive) (make-local-variable 'skeleton-pair-alist) (setq skeleton-pair-alist '((? \"_"\"")(? '_"'")(? \(_")")(? \ [_ "]"); (? \{_"}")(? {\ N >_\ n ?} >);> Is the tab key, capture {and insert \ n. The tab is automatically supplemented with \ n,}, tab (setq skeleton-pair T) (Local-set-Key (KBD "(") 'skeleton-pair-insert-maybe) (Local-set-Key (KBD "{") 'skeleton-pair-insert-maybe) (Local-set-Key (KBD "'") 'skeleton-pair-insert-maybe) (Local-set-Key (KBD "\" ") 'skeleton-pair-insert-maybe) (Local-set-Key (KBD "[") 'skeleton-pair-insert-maybe) (add-hook 'C-mode-call' my-mode-auto-Pair) (add-hook 'C ++-mode-hook'm Y-mode-auto-Pair) (add-hook 'java-mode-call' my-mode-auto-Pair );; (add-hook 'C-mode-common-hook 'My-mode-auto-Pair); Add the software yourself (custom-set-variables ;; custom-set-variables was added by custom .;; if you edit it by hand, you coshould mess it up, so be careful .;; your init file shoshould contain only one such instance .;; if there is more than one, they won't work right. '(ECB-options-version "2.40") (custom- Set-faces; custom-set-faces was added by custom .;; if you edit it by hand, you coshould mess it up, so be careful .;; your init file shoshould contain only one such instance .;; if there is more than one, they won't work right .);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; configuration of cedet2.40; ;;;;;;;;;;;;;;;;;;;;;;;cedet can be found on the official website, decompress the package, compile it, and decompress other plug-ins without instructions (load-file "~ /. Emacs. d/cedet-1.0.1/common/cedet. El "); set the working directory (setq semanticdb-project-roots (List (expand-file-name "~ /Work ") (require 'semanticdb) (setq semanticdb-default-save-directory (expand-file-name "~ /. Semanticdb "); enable the Project Management System (Global-Ede-mode t) (Global-set-Key [(F4)] 'speedbar-get-Focus ); enable prototype help and smart completion (semantic-load-enable-code-helpers); Enable template insertion menu (Global-srecode-minor-mode 1) (defun my-C-mode-cedet-hook () (Local-set-key ". "'semantic-complete-Self-insert) (Local-set-key"> "'semantic-complete-Self-insert) (add-hook 'C-mode-common-hook 'My-C-mode-cedet-hook); automatic menu prompt (Global-set-Key [(meta? /)] 'Semantic-Ia-complete-symbol-menu); Code jump (Global-set-Key [F12] 'semantic-Ia-fast-jump ); code folding (Global-semantic-tag-folding-mode 1) (define-key Semantic-tag-folding-mode-map (KBD "c --") 'semantic-tag-folding-fold-block) (define-key Semantic-tag-folding-mode-map (KBD "C-= ") 'semantic-tag-folding-show-block );;;;;;;;;;;;;;;;;;;;;; ECB configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;
(Add-to-list 'Load-path "~ /. Emacs. d/ecb-2.40 ") (require 'ecb-autoloads); Do not prompt every day (setq ECB-tip-of-the-day nil );; version Check (setq ECB-version-check nil); Activation (Global-set-Key [(F2)] 'ecb-activate );; disable (Global-set-Key [(F3)] 'ecb-deactivate); move the window (Global-set-Key [M-Left] 'windmove-left) (Global-set-Key [M-right] 'windmove-Right) (Global-set-Key [M-Up] 'windmove-up) (Global-set-Key [M-Down] 'windmove-down );;;;;;;;;;;;;;;;;;;;;; Auto-complete configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (add-to-list 'Load-path "~ /. Emacs. d/auto-complete ") (require 'auto-complete-config) (add-to-list 'ac-dictionary-directories "~ /. Emacs. d/auto-complete/ac-dict ") (Ac-config-default); Auto-complete key bindings (Global-set-Key [(control tab)] 'auto-complete );;;;;;;;;;;;;;;;;;;;;;;; color-theme configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; (add-to-list 'Load-path "~ /. Emacs. d/color-theme-6.6.0 ") (require 'color-theme) (color-theme-Initialize); the color is ugly and will not be configured ;; (load "my_emacs_conf_1.el"); (load "my_emacs_cedet.el"); (load "my_emacs_ecb.el"); (load "my_emacs_auto_complete.el ")

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.