diff options
author | Alan Pearce | 2014-05-15 19:05:28 +0100 |
---|---|---|
committer | Alan Pearce | 2014-05-15 19:05:28 +0100 |
commit | 9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1 (patch) | |
tree | 0d3a987b02ee5fc560df02e9d1f1a89814e358fa | |
parent | fa2854f23faba51da732d07977362b7034e5d034 (diff) | |
download | nixfiles-9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1.tar.lz nixfiles-9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1.tar.zst nixfiles-9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1.zip |
Emacs: merge programming sections
-rw-r--r-- | tag-emacs/emacs.d/init.el | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index b9051e5e..62bd000f 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -591,6 +591,21 @@ :diminish (flycheck-mode . " ✓") :init (global-flycheck-mode)) +(req-package auto-compile + :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode)) + +(req-package cc-mode + :init (progn + (add-hook 'c-mode-common-hook #'electric-indent-mode)) + :config (progn + (setq c-default-style '((java-mode . "java") + (awk-mode . "awk") + (other . "k&r")) + c-basic-offset 4) + (c-set-offset 'case-label '+))) + +(req-package quickrun) + ;;;; Projects (req-package projectile @@ -868,23 +883,6 @@ (bind-key "C-c e" #'eval-and-replace) -;;;; Programming - -(req-package auto-compile - :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode)) - -(req-package cc-mode - :init (progn - (add-hook 'c-mode-common-hook #'electric-indent-mode)) - :config (progn - (setq c-default-style '((java-mode . "java") - (awk-mode . "awk") - (other . "k&r")) - c-basic-offset 4) - (c-set-offset 'case-label '+))) - -(req-package quickrun) - ;;;; Web Development (req-package skewer-mode |