From 9fcd243e3b4c2fb9a540b7d0651c730fd2ac31d1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 15 May 2014 19:05:28 +0100 Subject: Emacs: merge programming sections --- tag-emacs/emacs.d/init.el | 32 +++++++++++++++----------------- 1 file 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 -- cgit 1.4.1