Add finally working company
This commit is contained in:
parent
c59eb1ceb8
commit
a9cf902017
7 changed files with 105 additions and 54 deletions
24
languages/elisp.el
Normal file
24
languages/elisp.el
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
;;; Ruby -- summary
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
|
||||
;;========== Editor config =========================
|
||||
(defun editor-config-elisp ()
|
||||
"Editor configuration for Elisp."
|
||||
(set-indent 2)
|
||||
(set-width-80))
|
||||
|
||||
;;========== Code completion =======================
|
||||
(defun completion-config-elisp ()
|
||||
"Code completion and inspection for Elisp."
|
||||
(company-mode 1)
|
||||
(flycheck-mode 1)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((elisp-company company-capf company-dabbrev-code company-yasnippet
|
||||
company-files))))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'emacs-lisp-mode-hook 'editor-config-elisp)
|
||||
(add-hook 'emacs-lisp-mode-hook 'completion-config-elisp)
|
||||
;;; elisp.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue