aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org26
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