diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-13 08:10:18 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-13 08:10:18 +0800 |
| commit | c30554da3886e39470fcd2c69114043a37c75a52 (patch) | |
| tree | aef4c51f23e432b3f8054bc1af9b56668f4e2e5e /.emacs.d/lisp/init-program-basic.el~ | |
| parent | f307bb8721e23ecaf6347a1766fe02e764120bc4 (diff) | |
| download | dotfiles-c30554da3886e39470fcd2c69114043a37c75a52.tar.xz dotfiles-c30554da3886e39470fcd2c69114043a37c75a52.zip | |
add some configuration
Diffstat (limited to '.emacs.d/lisp/init-program-basic.el~')
| -rw-r--r-- | .emacs.d/lisp/init-program-basic.el~ | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-program-basic.el~ b/.emacs.d/lisp/init-program-basic.el~ index db3455c..2e68074 100644 --- a/.emacs.d/lisp/init-program-basic.el~ +++ b/.emacs.d/lisp/init-program-basic.el~ @@ -3,4 +3,11 @@ tab-width 4 indent-tabs-mode t) +(defun execute-c-program () + (interactive) + (defvar foo) + (setq foo (concat + "gcc " (buffer-name) " -o " (buffer-name) ".out && ./" (buffer-name) ".out" )) + (shell-command foo)) + (provide 'init-program-basic) |
