diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-07-28 18:14:09 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-07-28 18:14:32 +0100 |
commit | 389317368cce89f93a2f99186d7674f0258aeeda (patch) | |
tree | 329b2c687f0a5049d9a3b354642132d07ca09792 /Emacs/.config/emacs/config.org | |
parent | 7a55a025e8698430338b5209e9dfbbecc8bf7e87 (diff) | |
download | dotfiles-389317368cce89f93a2f99186d7674f0258aeeda.tar.gz dotfiles-389317368cce89f93a2f99186d7674f0258aeeda.tar.bz2 dotfiles-389317368cce89f93a2f99186d7674f0258aeeda.zip |
(Emacs)+makefile auto insert
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r-- | Emacs/.config/emacs/config.org | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 57545de..a160fa5 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -855,7 +855,31 @@ as well. " _ " </body> -</html>"))) +</html>")) + (add-to-list + 'auto-insert-alist + '(("Makefile" . "Makefile skeleton") + "" + "CC=g++ +CFLAGS=-Wall -ggdb +FILES=main.cpp +OUT=main + +$(OUT): $(FILES) + $(CC) $(CFLAGS) $^ -o $@ + +.PHONY: +clean: + rm -rfv $(OUT) + +.PHONY: run +run: $(OUT) + ./$^ + +.PHONY: memcheck +memcheck: $(OUT) + valgrind --tool=memcheck ./$^" + _))) #+end_src *** Yasnippet default Setup global mode after evil mode has been loaded |