summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--init.el4
-rw-r--r--lisp/cpp.el7
3 files changed, 9 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 453231f..fbc5069 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
elpa
projectile-bookmarks.eld
+irony
auto-save-list
*.~
-projects \ No newline at end of file
+projects
diff --git a/init.el b/init.el
index a3281e5..2e54fff 100644
--- a/init.el
+++ b/init.el
@@ -14,7 +14,7 @@
(setq package-list
- '(tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org web-mode))
+ '(tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org web-mode cmake-mode rtags))
; fetch the list of packages available
(unless package-archive-contents
@@ -74,7 +74,7 @@
'(org-agenda-files (list org-directory))
'(org-directory "~/Documents/org")
'(package-selected-packages
- '(tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)))
+ '(rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/lisp/cpp.el b/lisp/cpp.el
index 0fca237..77ca740 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -4,10 +4,10 @@
(setq c-indent-level 4) ;; Default is 2
(c-set-offset 'brace-list-open 0)
-
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
(setq tab-width 4)
- (electric-indent-mode 0)
+ (cmake-ide-setup)
+ ;; (electric-indent-mode 0)
)
;; == irony-mode ==
@@ -51,4 +51,7 @@
(eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-irony-setup))
+(require 'cmake-ide)
+
(provide 'cpp)
+