From 6f358c7bd0521bf0c014e35397c8507bb2940957 Mon Sep 17 00:00:00 2001 From: David Shepherd Date: Thu, 16 Mar 2017 12:42:25 +0000 Subject: Tidy up --- README.md | 17 +++++------------ terminal-here.el | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index ed262d7..a602684 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,10 @@ [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. +An Emacs package to open an *external* terminal emulator in directories associated with the current buffer. + +Currently OSX and Windows support is based on what [atom-open-terminal-here](https://github.com/blueimp/atom-open-terminal-here/blob/master/index.coffee#L46) does. I don't have access to emacs running on either operating system, so please let me know if it works or not. + ## Usage @@ -26,6 +29,7 @@ Recommended keybindings: ``` (require 'terminal-here) (global-set-key (kbd "C-") #'terminal-here-launch) +(global-set-key (kbd "C-") #'terminal-here-project-launch) ``` but pick anything you like really. @@ -41,14 +45,3 @@ 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. diff --git a/terminal-here.el b/terminal-here.el index ec461ea..62c4a43 100644 --- a/terminal-here.el +++ b/terminal-here.el @@ -64,11 +64,11 @@ changed it by running `cd'." (defun terminal-here-project-launch () - (interactive) "Launch a terminal in the current project root. If projectile is installed the projectile root will be used, Otherwise `vc-root-dir' will be used." + (interactive) (terminal-here-launch-in-directory (if (functionp 'projectile-project-root) (projectile-project-root) (vc-root-dir)))) -- cgit v1.2.3