diff options
author | Kyle Meyer <kyle@kyleam.com> | 2013-11-20 18:34:44 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2013-11-20 18:34:44 -0500 |
commit | 30af35198fb4dd43be36c9025f29044ea7abfab9 (patch) | |
tree | a34a69f88da7a75a8155cdc7c68cc4edd60d1b3d /init | |
parent | bb6b90594bed24b943cc16f497da3eb72d71c454 (diff) | |
download | emacs.d-30af35198fb4dd43be36c9025f29044ea7abfab9.tar.gz |
Function to launch external terminal
Diffstat (limited to 'init')
-rw-r--r-- | init/km-func.el | 9 |
1 files changed, 9 insertions, 0 deletions
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))) |