From 3c7d5303c90ecdf96ec5c62d2b3827b33bc34295 Mon Sep 17 00:00:00 2001 From: angrygoats Date: Wed, 30 May 2018 12:40:52 -0700 Subject: [PATCH] Add some c mode stuff --- dotfiles/emacs.d/init.el | 9 +++++++++ dotfiles/emacs.d/package.el | 1 + 2 files changed, 10 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index a5a7c3e..1deb76b 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -296,6 +296,8 @@ setq org-log-done t) (add-hook 'after-init-hook 'global-company-mode) + + ;;------------------------------------------------------------------------------------- ;; Alignment ;;------------------------------------------------------------------------------------- @@ -365,6 +367,13 @@ setq org-log-done t) (add-hook 'c-mode-hook 'irony-mode) +;; Backend for Company +(defun my-c-mode-hook () + (eval-after-load 'company + '(add-to-list 'company-backends 'company-irony))) + +(add-hook 'c-mode-hook 'my-c-mode-hook) + ;;-------------------------------------------------------------------------------------- ;; Java Mode Setup ;;------------------------------------------------------------------------------------- diff --git a/dotfiles/emacs.d/package.el b/dotfiles/emacs.d/package.el index 4c960ee..fba1851 100644 --- a/dotfiles/emacs.d/package.el +++ b/dotfiles/emacs.d/package.el @@ -3,6 +3,7 @@ (defvar my-packages '(ag ;; Completion Frameworks company + company-irony eclim irony counsel