Add mg settings

This commit is contained in:
Tom Willemse 2015-06-17 11:29:03 +02:00
parent e9f4e1297a
commit 56c22f90ef
3 changed files with 34 additions and 0 deletions

1
mg/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.mg

6
mg/Makefile Normal file
View file

@ -0,0 +1,6 @@
include ../functions.mk
files: .mg
.mg: mg.org
$(call tangle)

27
mg/mg.org Normal file
View file

@ -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