Add company mode
This commit is contained in:
parent
cab8b17ce8
commit
89a37be512
4
init.el
4
init.el
@ -58,7 +58,8 @@
|
||||
;; --------------------------------------------------------------------------
|
||||
;; 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 custom-file 'noerror)
|
||||
|
||||
) ;; Reset garbage collection settings.
|
||||
|
@ -18,7 +18,8 @@
|
||||
|
||||
(setq init-packages/programming-packages
|
||||
|
||||
'(yasnippet)
|
||||
'(company
|
||||
yasnippet)
|
||||
|
||||
)
|
||||
|
||||
@ -26,6 +27,16 @@
|
||||
|
||||
(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.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user