From 5f2b301a8df5410962519d2b7e9a977b03e75977 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 Feb 2016 20:58:37 -0800 Subject: [emacs] Split the config into 'core' and 'modes'. Separate the modules that are 'core' (e.g.: related to editing, manipulating text, and so on) and the 'modes' (e.g.: related to syntax, langage support, etc). --- emacs.d/core/core-defun.el | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 emacs.d/core/core-defun.el (limited to 'emacs.d/core/core-defun.el') diff --git a/emacs.d/core/core-defun.el b/emacs.d/core/core-defun.el new file mode 100644 index 0000000..deb315b --- /dev/null +++ b/emacs.d/core/core-defun.el @@ -0,0 +1,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) -- cgit 1.4.1