我的Emacs设定

;;(require 'un-define)

(set-language-environment 'utf-8)

(setq locale-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(set-clipboard-coding-system 'ctext)
(set-buffer-file-coding-system 'utf-8) 
(global-font-lock-mode 't)
(set-background-color "black")
(set-foreground-color "white")
(set-default-font "8x16")
(setq-default indent-tabs-mode nil)  
(setq default-tab-width 4)  
(setq tab-width 4)   
(setq c-basic-offset 4)  
(setq tab-stop-list ())  
(require 'php-mode)
(add-hook 'php-mode-user-hook 'turn-on-font-lock)

(custom-set-faces
 '(font-lock-string-face ((t (:foreground "Red"))) t)
 '(font-lock-constant-face ((t (:foreground "Orange"))) t)
 '(font-lock-doc-string-face ((t (:foreground "Blue"))) t)
 '(font-lock-variable-name-face ((t (:foreground "Yellow"))) t)
 '(font-lock-function-name-face ((t (:foreground "Brown"))) t)
 '(font-lock-keyword-face ((t (:foreground "Cyan"))) t)
 '(font-lock-builtin-face ((t (:foreground "Purple"))) t)
 '(font-lock-type-face ((t (:foreground "green"))) t)
 '(font-lock-other-type-face ((t (:foreground "Blue"))) t)
 '(font-lock-comment-face ((t (:foreground "Cyan"))) t)
 '(font-lock-warning-face ((t (:foreground "Coral"))) t)) 

(add-to-list 'load-path "/opt/oss//auto-complete")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "/opt/oss/auto-complete/ac-dict")
(ac-config-default)

(require 'linum)
(setq linum-format "%d ")
(global-linum-mode t)
(transient-mark-mode 't)
(column-number-mode 't)

你可能感兴趣的:(我的Emacs设定)