diff options
| author | David Shepherd <davidshepherd7@gmail.com> | 2017-04-03 13:47:15 +0100 |
|---|---|---|
| committer | David Shepherd <davidshepherd7@gmail.com> | 2017-04-03 13:47:32 +0100 |
| commit | d653b9d569f0c35c4ca5f768edbbdfab17a178d4 (patch) | |
| tree | 9b0bb511f758d09a0c878129ee6911b618187a67 | |
| parent | Don't query about closing terminals when exiting emacs on Windows (diff) | |
| download | emacs-terminal-here-d653b9d569f0c35c4ca5f768edbbdfab17a178d4.tar.gz | |
Add an alias for launch command
Closes #5
| -rw-r--r-- | terminal-here.el | 3 | ||||
| -rw-r--r-- | test/terminal-here-test.el | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/terminal-here.el b/terminal-here.el index 6d412bf..4f4ff98 100644 --- a/terminal-here.el +++ b/terminal-here.el @@ -92,6 +92,9 @@ changed it by running `cd'." (terminal-here-launch-in-directory default-directory)) ;;;###autoload +(defalias 'terminal-here 'terminal-here-launch) + +;;;###autoload (defun terminal-here-project-launch () "Launch a terminal in the current project root. diff --git a/test/terminal-here-test.el b/test/terminal-here-test.el index 6323c8a..741eadb 100644 --- a/test/terminal-here-test.el +++ b/test/terminal-here-test.el @@ -9,6 +9,11 @@ +(ert-deftest terminal-here-launch-alias () + (with-terminal-here-mocks + (mock (terminal-here-launch-in-directory *)) + (terminal-here))) + (ert-deftest linux-default-command () (with-terminal-here-mocks (mock (start-process "x-terminal-emulator" * "x-terminal-emulator")) |
