posts - 2, comments - 27, trackbacks - 0, articles - 60
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          選擇了Emacs

          Posted on 2008-10-22 15:53 ZhouFeng 閱讀(547) 評論(0)  編輯  收藏 所屬分類: 轉(zhuǎn)載Linux
          選擇了Emacs。
          Emacs被譽(yù)為世界上最強(qiáng)的編輯器。
          世界上的程序員分三種,一種使用Emacs,一種使用vim,剩余的是其它。
          下面是收集的一點Emacs的配置
           ;;去掉啟動歡迎界面
          (setq inhibit-startup-message t)

          ;; 設(shè)置窗口大小
          (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設(shè)置為“文件名@LC's Emacs"
          (setq frame-title-format
          '("GNU/Emacs - [ " (buffer-file-name "%f \]"
          (dired-directory dired-directory "%b \]"))))

          ;;光標(biāo)靠近鼠標(biāo)的時候,讓鼠標(biāo)自動讓開,別擋住視線
          (mouse-avoidance-mode 'animate)

          ;; 自動存盤
          (setq auto-save-mode t)

          ;; 反顯選中區(qū)域
          (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

          參考網(wǎng)址:
          http://www.emacs.cn
          http://www.gnu.org/software/emacs/
          主站蜘蛛池模板: 驻马店市| 湘潭市| 隆回县| 安远县| 西吉县| 丰宁| 福清市| 龙川县| 临邑县| 抚州市| 遂川县| 昔阳县| 乡城县| 兴国县| 革吉县| 吉水县| 巩留县| 华安县| 曲阳县| 汶上县| 馆陶县| 天长市| 桐柏县| 东丽区| 五莲县| 桑日县| 朔州市| 虞城县| 华容县| 新兴县| 甘泉县| 罗甸县| 龙门县| 兴仁县| 梁平县| 韶山市| 新建县| 奉贤区| 扎兰屯市| 和田市| 桃江县|