diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:37:13 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:37:13 +0800 |
| commit | f307bb8721e23ecaf6347a1766fe02e764120bc4 (patch) | |
| tree | 71c8a90ac115533ad58ed339ed57855285517596 /.emacs.d/lisp/init-program-basic.el | |
| parent | 5f98cf9ac6e71ac84a7394a89748662d9c4f793d (diff) | |
| download | dotfiles-f307bb8721e23ecaf6347a1766fe02e764120bc4.tar.xz dotfiles-f307bb8721e23ecaf6347a1766fe02e764120bc4.zip | |
add program c
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) |
