Emacs-win使用ガイド

6511 ワード

1.windows下emacsインストール(ntemacs 24)
http://ntemacs.sourceforge.net/
ダウンロード&解凍
2.行番号付きモードlinum-modeを表示
M-x linum-modeスイッチ式
emacs-win使用指南_第1张图片
3.いくつかの標準ボタン
アクセスファイルはC-x C-fを作成していません
ディレクトリC-x dを開く
現在のBuffer C-x C-sを保存
C-x C-wを保存
終了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
bufferヘッダMへ
buffer末尾M->に移動
--------------------------
現在のペインC-x 0を閉じる
現在のペインの最大化C-x 1
垂直分割ウィンドウC-x 2
水平分割ウィンドウC-x 3
--------------------------
 
4.画像を表示
Windows版はいくつかのdllサポートが必要で、ntemacsには持参して、もしみんなのemacsが自分でネット上でダウンロードすることができなければ.binディレクトリに配置:
 

プレゼンテーション:
emacs-win使用指南_第2张图片
5.tabタブtabbar-mode
このmodeをダウンロードしてsite-lispディレクトリ(自動ロード)に入れても別のディレクトリに入れてロードできます
http://www.emacswiki.org/emacs/download/tabbar.el
修正Emacsプロファイル(ホームディレクトリ、C:Documents and SettingsAdministrator)
追加
(require 'tabbar)  
導入後、
(tabbar-mode 1) 
モードをオンにします.
M-x tabbar-modeは手動でオンにしてもかまいません.
 
emacs-win使用指南_第3张图片
このスタイルは既定です.
参照
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.                     ) 

emacs-win使用指南_第4张图片
少し目を通す. 
6.sr-speedbar
http://www.emacswiki.org/emacs/download/sr-speedbar.el
site-lispディレクトリにダウンロード
次に構成を変更します.emacs
 
(require 'sr-speedbar)    : M-x sr-speedbar-open          。 

emacs-win使用指南_第5张图片
 emacs   speedbar          

emacs-win使用指南_第6张图片
M-x speedbar