https://github.com/adamrt/sane-term
Cycle through terms in emacs
https://github.com/adamrt/sane-term
ansi-term emacs
Last synced: 6 days ago
JSON representation
Cycle through terms in emacs
- Host: GitHub
- URL: https://github.com/adamrt/sane-term
- Owner: adamrt
- License: isc
- Archived: true
- Created: 2014-10-18T18:14:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-17T15:12:23.000Z (almost 3 years ago)
- Last Synced: 2025-04-04T13:42:14.782Z (11 days ago)
- Topics: ansi-term, emacs
- Language: Emacs Lisp
- Size: 16.6 KB
- Stars: 59
- Watchers: 7
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- my-awesome-github-stars - adamrt/sane-term - Cycle through terms in emacs (Emacs Lisp)
README
### 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__
```emacs
(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
```