diff options
author | mattkae <mattkae@protonmail.com> | 2022-07-28 08:23:24 -0400 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-07-28 08:23:24 -0400 |
commit | 928759bb7a2f91dbf76a55bedc44e25638cd2419 (patch) | |
tree | ff81bf7ce9fe7a34bbf30c135b931c22f710b497 /lisp/cpp.el | |
parent | 50c378b451131112f0ca178e500577949d4ecdf2 (diff) |
A handful of useful fixes
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r-- | lisp/cpp.el | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el index 77ca740..4b42382 100644 --- a/lisp/cpp.el +++ b/lisp/cpp.el @@ -1,3 +1,6 @@ +;;; package --- Summary + +;;; Code: (defun setup-c() (setq c++-tab-always-indent 0) (setq c-basic-offset 4) ;; Default is 2 @@ -30,28 +33,6 @@ (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options) ) -;; == company-mode == -(use-package company - :ensure t - :defer t - :init (add-hook 'after-init-hook 'global-company-mode) - :config - (use-package company-irony :ensure t :defer t) - (setq company-idle-delay nil - company-minimum-prefix-length 2 - company-show-numbers t - company-tooltip-limit 20 - company-dabbrev-downcase nil - company-backends '((company-irony company-gtags)) - ) - :bind ("C-;" . company-complete-common) - ) - -;; Flycheck -(eval-after-load 'flycheck - '(add-hook 'flycheck-mode-hook #'flycheck-irony-setup)) - (require 'cmake-ide) - (provide 'cpp) |