blob: ed262d7888e258d5534e0d6bf0f26f5198bbacd4 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Terminal Here
[![travis][travis-badge]][travis-link] <!-- [![melpa][melpa-badge]][melpa-link] --> <!-- [![melpa stable badge][melpa-stable-badge]][melpa-stable-link] -->
[travis-link]: https://travis-ci.org/davidshepherd7/terminal-here
[travis-badge]: https://travis-ci.org/davidshepherd7/terminal-here.svg?branch=master
[melpa-link]: http://melpa.org/#/terminal-here
[melpa-badge]: http://melpa.org/packages/terminal-here-badge.svg
[melpa-stable-link]: https://stable.melpa.org/#/terminal-here
[melpa-stable-badge]: https://stable.melpa.org/packages/terminal-here-badge.svg
An Emacs package to help open external terminal emulators in the directory of the current buffer.
## Usage
Currently not on Melpa, so grab the elisp file, put it in your path and require
it. Hopefully it will be soon.
<!-- `M-x package-install terminal-here` -->
Run `terminal-here-launch` to start a terminal in the current directory.
Recommended keybindings:
```
(require 'terminal-here)
(global-set-key (kbd "C-<f5>") #'terminal-here-launch)
```
but pick anything you like really.
## Alternatives
There are lots of built in ways to run terminals *inside* emacs (`shell`,
`eshell`, `ansi-term`, ...) but these can have problems like slow output speed
or incompatibility with existing configs. I currently prefer to run external
terminal emulators, YMMV.
A couple of
[places on](http://emacs.stackexchange.com/questions/7650/how-to-open-a-external-terminal-from-emacs)
[the internet](http://ergoemacs.org/emacs/emacs_dired_open_file_in_ext_apps.html) have instructions for running specific terminals from Emacs, but they are not as portable as they could be.
## Ramblings
This package is actually pretty trivial, but I figure it's useful for people who
are (very) new to emacs to be able to do this by simply installing a package. I
found myself wanting to do something similar in atom but I didn't have time to
figure out how to write the (probably trivial) required coffeescript. So I was
very happy to find that someone had made a package for it.
Also integration with projectile or other project packages might be of some use.
|