Add company mode

This commit is contained in:
Wojciech Kozlowski 2017-08-29 21:05:06 +01:00
parent cab8b17ce8
commit 89a37be512
2 changed files with 15 additions and 2 deletions

View File

@ -58,7 +58,8 @@
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Change file in which custom variable changes are saved. ;; Change file in which custom variable changes are saved.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
(setq custom-file "~/.emacs.d/custom.el")
(setq-default custom-file "~/.emacs.d/custom.el")
;; *********************************************************************** ;; ;; *********************************************************************** ;;
@ -121,6 +122,7 @@
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Load any custom variables. ;; Load any custom variables.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
(load custom-file 'noerror) (load custom-file 'noerror)
) ;; Reset garbage collection settings. ) ;; Reset garbage collection settings.

View File

@ -18,7 +18,8 @@
(setq init-packages/programming-packages (setq init-packages/programming-packages
'(yasnippet) '(company
yasnippet)
) )
@ -26,6 +27,16 @@
(defun init-packages/init-programming () (defun init-packages/init-programming ()
;; --------------------------------------------------------------------------
;; Company - complete anything.
;; --------------------------------------------------------------------------
(use-package company
:init
(add-hook 'after-init-hook 'global-company-mode)
:config
(setq company-backends (delete 'company-clang company-backends)))
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Enable yasnippet. ;; Enable yasnippet.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------