From dd274fb9af743d6ec23f7ddc4ced846bcf19a73e Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 9 Mar 2018 16:06:14 +0900 Subject: [PATCH] Remove c-mode setup in favor of editorconfig --- emacs.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/emacs.el b/emacs.el index 7039ed4..4c39fb5 100644 --- a/emacs.el +++ b/emacs.el @@ -998,17 +998,7 @@ found, otherwise returns nil." (add-to-list 'c-default-style '(c-mode . "k&r")) (add-to-list 'c-default-style - '(c++-mode . "k&r")) - (add-hook 'c-mode-common-hook - (lambda () - ;; why c-basic-offset in k&r style defaults to 5 ??? - (set-variable 'c-basic-offset 4) - (set-variable 'indent-tabs-mode nil) - ;; (set-face-foreground 'font-lock-keyword-face "blue") - (c-toggle-hungry-state -1) - ;; (and (require 'gtags nil t) - ;; (gtags-mode 1)) - ))) + '(c++-mode . "k&r"))) (autoload-eval-lazily 'js2-mode nil ;; currently do not use js2-mode