项目作者: adamrt

项目描述 :
Cycle through terms in emacs
高级语言: Emacs Lisp
项目地址: git://github.com/adamrt/sane-term.git
创建时间: 2014-10-18T18:14:54Z
项目社区:https://github.com/adamrt/sane-term

开源协议:ISC License

下载


Notice

This project is no longer maintained. I’ve switched to vterm and
multi-vterm which provide the same functionality as ansi-term and
this package, respectively.

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

  1. (use-package sane-term
  2. :ensure t
  3. :bind (
  4. ("C-x t" . sane-term)
  5. ("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).

  1. source /etc/profile
  2. source ~/.profile