summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-03-29 15:46:50 +0100
committerGravatar Tom Willemsen2013-03-29 15:46:50 +0100
commit752c0436b1b6017baedd752a4d676973a6f2ab87 (patch)
tree5b38b2fb65bfd1645f05223abff7bb6d843685b4
parent56822a900cb3e8d3d80cf97a4e9c87bdc4b9596e (diff)
downloaddotfiles-752c0436b1b6017baedd752a4d676973a6f2ab87.tar.gz
dotfiles-752c0436b1b6017baedd752a4d676973a6f2ab87.zip
Emacs: speedup calling of ansi-term
-rw-r--r--emacs/site-lisp/oni.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/site-lisp/oni.el b/emacs/site-lisp/oni.el
index 9ff1ee4..027463b 100644
--- a/emacs/site-lisp/oni.el
+++ b/emacs/site-lisp/oni.el
@@ -373,7 +373,7 @@ When dealing with braces, add another line and indent that too."
(let ((buffer (get-buffer "*ansi-term*")))
(if (and buffer (not arg))
(switch-to-buffer buffer)
- (call-interactively 'ansi-term))))
+ (ansi-term (getenv "SHELL")))))
(defun oni:raise-scratch (&optional mode)
"Show the *scratch* buffer.