From 30af35198fb4dd43be36c9025f29044ea7abfab9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 20 Nov 2013 18:34:44 -0500 Subject: Function to launch external terminal --- init/km-func.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'init') diff --git a/init/km-func.el b/init/km-func.el index e41bfcb..e32db22 100644 --- a/init/km-func.el +++ b/init/km-func.el @@ -178,3 +178,12 @@ KILLARG." (other-window 1)) (global-set-key (kbd "C-c s") 'km/swap-windows) + +(defvar km/terminal "urxvt") + +(defun km/open-external-terminal () + (interactive) + (let ((bufname (get-buffer-create "*External terminal*"))) + (with-current-buffer bufname + (insert "Starting terminal")) + (start-process "ext-term" bufname km/terminal))) -- cgit v1.2.3