Posted on 2008-10-22 15:53
ZhouFeng 閱讀(542)
評論(0) 編輯 收藏 所屬分類:
轉載 、
Linux
選擇了Emacs。
Emacs被譽為世界上最強的編輯器。
世界上的程序員分三種,一種使用Emacs,一種使用vim,剩余的是其它。
下面是收集的一點Emacs的配置
;;去掉啟動歡迎界面
(setq inhibit-startup-message t)
;; 設置窗口大小
(set-frame-height (selected-frame) 30)
(set-frame-width (selected-frame) 90)
;;不顯示工具條
(tool-bar-mode -1)
;;不要總是沒完沒了的問yes or no, 為什么不能用 y/n
(fset 'yes-or-no-p 'y-or-n-p)
;;不要生成臨時文件
(setq-default make-backup-files nil)
;;括號匹配時顯示另外一邊的括號,而不是煩人的跳到另一個括號。
(show-paren-mode t)
(setq show-paren-style 'parentheses)
;;打開高亮 #M-x global-font-lock-mode
(global-font-lock-mode t)
;;把title設置為“文件名@LC's Emacs"
(setq frame-title-format
'("GNU/Emacs - [ " (buffer-file-name "%f \]"
(dired-directory dired-directory "%b \]"))))
;;光標靠近鼠標的時候,讓鼠標自動讓開,別擋住視線
(mouse-avoidance-mode 'animate)
;; 自動存盤
(setq auto-save-mode t)
;; 反顯選中區域
(transient-mark-mode t)
(setq load-path (cons "d:/soft/green_soft/ntemacs23/site-lisp/" load-path))
;(add-to-list 'load-path "d:/soft/green_soft/ntemacs23/site-lisp/")
;;(set-scroll-bar-mode nil) ; no scroll bar, even in x-window system
(require 'wb-line-number)
;;缺省顯示行號
;;(wb-line-number-enable)
;;顯示行號 #M-x wb-line-number-toggle
參考網址:
http://www.emacs.cn
http://www.gnu.org/software/emacs/