commit c6d09773620402d2ec29de66022fd897af495a48
parent a1adf84ebeb24c9de225915ae5e9e3c661f38b66
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Thu, 23 Nov 2017 11:26:38 -0600
Added CC mode and backup file settings.
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/README.org b/README.org
@@ -17,6 +17,7 @@ Here's a short description for each module.
| [[Auctex]] | Latex settings. |
| [[Ox-hugo]] | =hugo= exporter. |
| [[Magit]] | Git interface. |
+| [[CC]] | CC mode. |
* Packages
Manage my package settings.
@@ -175,6 +176,15 @@ Use Source Code Pro as the default font.
(setq default-frame-alist '((font . "Source Code Pro-12")))
#+END_SRC
+** Save Backups Elsewhere
+Save =*~= backups in =$(pwd)/.bak=.
+
+#+BEGIN_SRC emacs-lisp
+ (setq backup-directory-alist
+ '(("." . ".bak"))
+ )
+#+END_SRC
+
* Org-mode
Mostly formatting settings in =org-mode=.
@@ -377,3 +387,10 @@ Set hot key for =magit-status=.
#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "C-c g") 'magit-status)
#+END_SRC
+* CC
+** Default Indention
+Set default indention level to 4 and style to "linux"(do not indent braces).
+#+BEGIN_SRC emacs-lisp
+ (setq-default c-default-style "linux"
+ c-basic-offset 4)
+#+END_SRC