summaryrefslogtreecommitdiffstats
path: root/mg
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-17 11:29:03 +0200
committerGravatar Tom Willemse2015-06-17 11:29:03 +0200
commit56c22f90efef42a58e31b574d188e1c27cd6b860 (patch)
tree724efc33455e4bd2b9133c83217aa8b418cb6569 /mg
parente9f4e1297af6916fd338196d5083433b8c1d6247 (diff)
downloaddotfiles-56c22f90efef42a58e31b574d188e1c27cd6b860.tar.gz
dotfiles-56c22f90efef42a58e31b574d188e1c27cd6b860.zip
Add mg settings
Diffstat (limited to 'mg')
-rw-r--r--mg/.gitignore1
-rw-r--r--mg/Makefile6
-rw-r--r--mg/mg.org27
3 files changed, 34 insertions, 0 deletions
diff --git a/mg/.gitignore b/mg/.gitignore
new file mode 100644
index 0000000..ed0aff3
--- /dev/null
+++ b/mg/.gitignore
@@ -0,0 +1 @@
+.mg
diff --git a/mg/Makefile b/mg/Makefile
new file mode 100644
index 0000000..8932f12
--- /dev/null
+++ b/mg/Makefile
@@ -0,0 +1,6 @@
+include ../functions.mk
+
+files: .mg
+
+.mg: mg.org
+ $(call tangle)
diff --git a/mg/mg.org b/mg/mg.org
new file mode 100644
index 0000000..099aa3d
--- /dev/null
+++ b/mg/mg.org
@@ -0,0 +1,27 @@
+#+TITLE: mg
+#+PROPERTY: tangle .mg
+#+STARTUP: showall
+#+OPTIONS: author:nil num:nil toc:nil
+#+HTML_HEAD: <link href="https://ryuslash.org/org.css" rel="stylesheet" type="text/css" />
+
+I don't use mg to look at C files often, but when I do, I want
+=c-mode= to be activated.
+
+#+BEGIN_SRC fundamental
+ auto-execute *.c c-mode
+#+END_SRC
+
+One of the nicest features of Emacs, for me, is its automatic indent
+system. Mg can do this too.
+
+#+BEGIN_SRC fundamental
+ auto-indent-mode 1
+#+END_SRC
+
+I don't like how backup files clutter my directories. I do like having
+them around, just in case. So instead of saving them wherever we find
+them, save them in =~/.mg.d=.
+
+#+BEGIN_SRC fundamental
+ backup-to-home-directory
+#+END_SRC