term+での複数シミュレーションを行ったらemacs自体の速度低下を確認しました.デバッグ以外はなるべくterminal専門アプリでの実行をおすすめします
emacs上のターミナルを拡張するelispでterm+.elっていうのがあるんですが,なかなかいいので紹介します.概要と使用法については下のリンクにある作者の方のドキュメントがすごい充実してるのでそちらを参照されると良いと思います.
私は下みたいな設定にしてC-tでansi-termが開くようにしてます.
;; term+
(add-to-list 'load-path "~/emacslib/termplus")
(require 'term+)
(require 'xterm-256color)
(require 'term+mux)
;; Find available shell
(defun skt:shell ()
(or (executable-find "zsh") ;; bashユーザは一行下と入れ替え
(executable-find "bash")
(error "No shell program was found in your PATH...")))
;; Set shell-name
(setq shell-file-name (skt:shell))
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
;; Setup sufficient moji-codes for Mac
(setq system-uses-terminfo nil)
(prefer-coding-system 'utf-8)
(require 'ucs-normalize)
(setq file-name-coding-system 'utf-8-hfs)
(setq locale-coding-system 'utf-8-hfs)
;; Color settings for term
(setq term-default-bg-color "Black")
(autoload 'ansi-color-for-comint-mode-on "ansi-color"
"Set `ansi-color-for-comint-mode' to t." t)
;; Binding key
(global-unset-key "\C-t")
(global-set-key "\C-t" '(lambda ()
(interactive)
(ansi-term shell-file-name)))
anti-termでbashの設定を読み込ませるには、bashrcに書くといいです。
返信削除