From d653b9d569f0c35c4ca5f768edbbdfab17a178d4 Mon Sep 17 00:00:00 2001 From: David Shepherd Date: Mon, 3 Apr 2017 13:47:15 +0100 Subject: Add an alias for launch command Closes #5 --- terminal-here.el | 3 +++ test/terminal-here-test.el | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/terminal-here.el b/terminal-here.el index 6d412bf..4f4ff98 100644 --- a/terminal-here.el +++ b/terminal-here.el @@ -91,6 +91,9 @@ changed it by running `cd'." (interactive) (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")) -- cgit v1.2.3