EmacsSetup » 履歴 » バージョン 2
  Yuumi Yoshida, 2008-05-17 17:32 
  
| 1 | 2 | Yuumi Yoshida | |
|---|---|---|---|
| 2 | h1. 3ページ目の Emacs設定  | 
||
| 3 | |||
| 4 | <pre>  | 
||
| 5 | 1 | Yuumi Yoshida | (setq process-coding-system-alist  | 
| 6 |        (cons '("gosh" utf-8 . utf-8) process-coding-system-alist)) | 
||
| 7 | ;; goshインタプリタのパスに合わせます。  | 
||
| 8 | (setq scheme-program-name "C:/cygwin/usr/local/bin/gosh.exe -i")  | 
||
| 9 | (autoload 'scheme-mode "cmuscheme" "Major mode for Scheme." t)  | 
||
| 10 | (autoload 'run-scheme "cmuscheme" "Run an inferior Scheme process." t)  | 
||
| 11 | ;; ウィンドウを2つに分け、一方でgoshインタプリタを実行するコマンドを定義します。  | 
||
| 12 | (defun scheme-other-window ()  | 
||
| 13 | "Run scheme on other window"  | 
||
| 14 | (interactive)  | 
||
| 15 | (switch-to-buffer-other-window  | 
||
| 16 | (get-buffer-create "*scheme*"))  | 
||
| 17 | (run-scheme scheme-program-name))  | 
||
| 18 | ;; そのコマンドをCtrl-cSで呼び出します。  | 
||
| 19 | (define-key global-map  | 
||
| 20 | "\C-cS" 'scheme-other-window)  | 
||
| 21 | ;; 直前/直後の括弧に対応する括弧を光らせます。  | 
||
| 22 | (show-paren-mode)  | 
||
| 23 | 2 | Yuumi Yoshida | </pre>  |