.emacs.d/site-lisp/oni.el
This commit is contained in:
parent
b74622f11b
commit
1f67da1508
1 changed files with 8 additions and 0 deletions
|
@ -409,6 +409,14 @@ When dealing with braces, add another line and indent that too."
|
||||||
fill-column 72)
|
fill-column 72)
|
||||||
(fci-mode))
|
(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 ()
|
(defun oni:raise-eshell ()
|
||||||
"Start or switch back to `eshell'.
|
"Start or switch back to `eshell'.
|
||||||
Also change directories to current working directory."
|
Also change directories to current working directory."
|
||||||
|
|
Loading…
Reference in a new issue