summary refs log tree commit diff
path: root/emacs.d/core/core-defun.el
blob: deb315b78026c32ff9be5d7a524115e2a5ae4124 (plain) (blame)
1
2
3
4
5
6
7
8
9
(defun fcuny-terminal ()
  "Switch to terminal. Launch if nonexistent."
  (interactive)
  (if (get-buffer "*ansi-term*")
      (switch-to-buffer "*ansi-term*")
    (ansi-term "/bin/bash"))
  (get-buffer-process "*ansi-term*"))

(provide 'core-defun)