From 8fccba38e0d669dc1b30882b110c155ee84f63ca Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Thu, 9 May 2019 08:46:00 +0800 Subject: add slime --- .emacs.d/lisp/init-program-basic.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.emacs.d/lisp/init-program-basic.el') diff --git a/.emacs.d/lisp/init-program-basic.el b/.emacs.d/lisp/init-program-basic.el index 04266aa..70bab79 100644 --- a/.emacs.d/lisp/init-program-basic.el +++ b/.emacs.d/lisp/init-program-basic.el @@ -9,6 +9,14 @@ tab-width 4 indent-tabs-mode t) +(defun execute-python-program () + "run current python script." + (interactive) + (save-buffer) + (defvar foo) + (setq foo (concat "python " (buffer-name))) + (shell-command foo)) + (defun execute-c-program () "Complie current c file and run it." (interactive) -- cgit v1.2.3