An Emacs package to open an external terminal emulator in directories associated with the current buffer.
Currently not on Melpa, so grab the elisp file, put it in your path and require it. Hopefully it will be soon.
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)
(global-set-key (kbd "C-<f6>") #'terminal-here-project-launch)
Terminal-here has out-of-the-box support for some platforms, but will work anywhere with some customisation.
Out-of-the-box support tested on:
- Ubuntu 16.04 (but should work identically on any Debian-based system)
- Windows 10
Should be supported out-of-the-box, but currently untested:
- Older versions of Windows
- OSX (support is based on what atom-open-terminal-here does)
Currently unsupported out-of-the-box:
- Non-Debian-based UNIXes, because I haven't seen a standard way to open the user's preferred terminal
If you have problems just set terminal-here-terminal-command
to a command line (a list of
strings like '("foo-term" "arg1" "arg2")
) which launches your preferred terminal.
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 the internet have instructions for running specific terminals from Emacs, but they are not as portable as they could be.