emacs-win使用指南

1.windows下emacs安裝(ntemacs 24)html

http://ntemacs.sourceforge.net/windows

下載&解壓ide

2.顯示行號自帶模式linum-modepost

M-x linum-mode  開關式字體

3.幾個標準按鍵ui

訪問文件沒有建立 C-x C-fspa

打開目錄 C-x d.net

保存當前Buffer C-x C-sxml

另存  C-x C-whtm

退出emacs  C-x C-c

--------------------------

撤銷Undo   C-x u

複製 M-w

剪切 C-w

粘帖  C-y

也能夠這樣複製粘帖 鼠標高亮選擇而後鼠標中鍵

你也能夠使用你習慣的ctrl-c,ctrl-v,ctrl-x,ctrl-z (CUA)

options菜單,勾選那個C-x/C-v.....菜單項

----------------------------

Go to第幾行 M-g g

轉到buffer頭部 M-<(注意是大於號,因此須要shift按住)

轉到buffer尾部 M->

--------------------------

關閉當前窗格 C-x 0

當前窗格最大化 C-x 1

垂直分割窗口 C-x 2

水平分割窗口 C-x 3

--------------------------

 

4.顯示圖片

windows版須要幾個dll支持,ntemacs裏自帶,若是你們的emacs沒有本身能夠去網上下載。放置到bin目錄:

 

演示:

5.tab選項卡tabbar-mode

下載此mode,放在site-lisp目錄(自動加載)也能夠放在別的目錄里加載

http://www.emacswiki.org/emacs/download/tabbar.el

修改.emacs配置文件(主目錄裏,我這裏是C:\Documents and Settings\Administrator)

添加

(require 'tabbar)  

引入後,

(tabbar-mode 1

開啓模式。

M-x tabbar-mode手動開啓也能夠。

 

默認這個樣式。

參照

http://wwliu.is-programmer.com/posts/14728.html

修改後:

  
  
  
  
  1. ;;;; 設置tabbar外觀 
  2. ;; 設置默認主題: 字體, 背景和前景顏色,大小 
  3. (set-face-attribute 'tabbar-default nil 
  4.                     :family "DejaVu Sans Mono" 
  5.                     :background "gray80" 
  6.                     :foreground "gray30" 
  7.                     :height 0.8 
  8.                     ) 
  9. ;; 設置左邊按鈕外觀:外框框邊大小和顏色 
  10. (set-face-attribute 'tabbar-button nil 
  11.                     :inherit 'tabbar-default 
  12.                     :box '(:line-width 1 :color "gray30") 
  13.                     ) 
  14. ;; 設置當前tab外觀:顏色,字體,外框大小和顏色 
  15. (set-face-attribute 'tabbar-selected nil 
  16.                     :inherit 'tabbar-default 
  17.                     :foreground "DarkGreen" 
  18.                     :background "LightGoldenrod" 
  19.                     :box '(:line-width 2 :color "DarkGoldenrod") 
  20.                     ;; :overline "black" 
  21.                     ;; :underline "black" 
  22.                     :weight 'bold 
  23.                     ) 
  24. ;; 設置非當前tab外觀:外框大小和顏色 
  25. (set-face-attribute 'tabbar-unselected nil 
  26.                     :inherit 'tabbar-default 
  27.                     :box '(:line-width 2 :color "gray70") 
  28.                     ) 

稍微順眼點。 

6.sr-speedbar

http://www.emacswiki.org/emacs/download/sr-speedbar.el

下載放到site-lisp目錄

而後修改配置.emacs

 

(require 'sr-speedbar)  顯示: M-x sr-speedbar-open  你能夠綁定快捷建。 

 emacs自帶了speedbar 單開一個窗口顯示 

M-x speedbar   
相關文章
相關標籤/搜索