summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-17 09:04:32 +0200
committerGravatar Tom Willemsen2012-10-17 09:04:32 +0200
commita38c6eee1ab2f62cfebccf6b4b7ec35a1300de16 (patch)
tree0ba1b88bc2a4a2d3e9feb4f92265524b1c8df63e /.emacs.d
parent821793e7deba56da5932ed42957ffefbe140ce22 (diff)
downloaddotfiles-a38c6eee1ab2f62cfebccf6b4b7ec35a1300de16.tar.gz
dotfiles-a38c6eee1ab2f62cfebccf6b4b7ec35a1300de16.zip
.emacs.d/site-lisp/oni.el
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/site-lisp/oni.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el
index a480282..2f60c63 100644
--- a/.emacs.d/site-lisp/oni.el
+++ b/.emacs.d/site-lisp/oni.el
@@ -406,6 +406,14 @@ When dealing with braces, add another line and indent that too."
fill-column 72)
(fci-mode))
+(defun oni:raise-ansi-term (arg)
+ "Create or show an `ansi-term' buffer."
+ (interactive "P")
+ (let ((buffer (get-buffer "*ansi-term*")))
+ (if (and buffer (not arg))
+ (switch-to-buffer buffer)
+ (call-interactively 'ansi-term))))
+
(defun oni:raise-eshell ()
"Start or switch back to `eshell'.
Also change directories to current working directory."