Wednesday, September 11, 2013

Emacs - Multi Term

Want to have a cool terminal like this in your emacs?:

What you need is just install MultiTerm, MultiTerm is a mode based on term.el, for managing multiple terminal buffers in Emacs.
Emacs MultiTerm

To install, download multi-term.el and put it in your load path, I put it in my ~/.emacs.d directory and then in my .emacs file, I have:

(require 'multi-term)     ;; Emacs multi Term
(load-library "tony-multi-term")

in "tony-multi-term.el" (extra key settings/bindings for multi-term), I have:


;; Emacs Multi term settings

(setq multi-term-program "/bin/bash")
(add-to-list 'term-bind-key-alist '("C-c C-e" . term-send-esc))

At last, you might want to change "defcustom multi-term-scroll-to-bottom-on-output" from "nil" to "'all"

(defcustom multi-term-scroll-to-bottom-on-output 'all
  "*Controls whether interpreter output causes window to scroll.
If nil, then do not scroll.  If t or `all', scroll all windows showing buffer.
If `this', scroll only the selected window.
If `others', scroll only those that are not the selected window.

The default is nil.

No comments: