Cycle through terms in emacs
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt (c) year and version bump Jan 6, 2015
README.md Simplify docs and stop autoloading sane-term-mode-toggle Nov 30, 2018
sane-term.el Simplify docs and stop autoloading sane-term-mode-toggle Nov 30, 2018

README.md

Sane Term

sane-term is ansi-term with sane options and the ability to cycle/create terms.

Overview

  • sane-term will cycle through term buffers, creating one if there are none.
  • sane-term-create will create a new term buffer.

Setup

(use-package sane-term
  :ensure t
  :bind (
    ("C-x t" . sane-term)
    ("C-x T" . sane-term-create))

Variables

  • sane-term-shell-command [$SHELL or "/bin/sh"] - shell to use for sane-term.
  • sane-term-initial-create [t] - sane-term will create first term if none exist.
  • sane-term-kill-on-exit [t] - C-d or exit will kill the term buffer.
  • sane-term-next-on-kill [t] - After killing a term buffer, cycle to another.

Common Issues

When you start a term you may find your environment variables are not set. This is the proper, yet unexpected behavior. You can read about it here https://github.com/adamrt/sane-term/issues/6 but the gist is that your ~/.profile is not being read. Non-login shells read from ~/.bashrc instead. Put the following in your ~/.bashrc (create it if necessary).

source /etc/profile
source ~/.profile