Browse Source

Add some c mode stuff

Taylor Bockman 7 years ago
parent
commit
201bb863f6
  1. 9
      dotfiles/emacs.d/init.el
  2. 1
      dotfiles/emacs.d/package.el

9
dotfiles/emacs.d/init.el

@ -296,6 +296,8 @@ setq org-log-done t)
(add-hook 'after-init-hook 'global-company-mode) (add-hook 'after-init-hook 'global-company-mode)
;;------------------------------------------------------------------------------------- ;;-------------------------------------------------------------------------------------
;; Alignment ;; Alignment
;;------------------------------------------------------------------------------------- ;;-------------------------------------------------------------------------------------
@ -365,6 +367,13 @@ setq org-log-done t)
(add-hook 'c-mode-hook 'irony-mode) (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 ;; Java Mode Setup
;;------------------------------------------------------------------------------------- ;;-------------------------------------------------------------------------------------

1
dotfiles/emacs.d/package.el

@ -3,6 +3,7 @@
(defvar my-packages '(ag (defvar my-packages '(ag
;; Completion Frameworks ;; Completion Frameworks
company company
company-irony
eclim eclim
irony irony
counsel counsel

Loading…
Cancel
Save