summaryrefslogtreecommitdiff
path: root/lisp/cpp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r--lisp/cpp.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el
index 2a44fba..3565a16 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -1,7 +1,7 @@
-;;; package --- Summary
;;; Code:
(defun setup-c()
+ "Set up c common mode."
(setq c++-tab-always-indent 0)
(setq c-basic-offset 4) ;; Default is 2
(setq c-indent-level 4) ;; Default is 2
@@ -12,7 +12,7 @@
;; (electric-indent-mode 0)
)
-; == irony-mode ==
+;; Irony mode.
(use-package irony
:ensure t
:defer t
@@ -34,5 +34,8 @@
(require 'cmake-ide)
(cmake-ide-setup)
-(provide 'cpp)
+(add-hook 'c-mode-common-hook 'setup-c)
+
+(provide 'cpp)
+;;; cpp.el ends here