Emacs: merge programming sections
Alan Pearce alan@alanpearce.co.uk
Thu, 15 May 2014 19:05:28 +0100
1 files changed, 15 insertions(+), 17 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -591,6 +591,21 @@ (req-package flycheck :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 @@ -867,23 +882,6 @@ (error (message "Invalid expression") (insert (current-kill 0))))) (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