Move everything to folders.
* Remove not working function to create files with helm * Add SQL language file * Fine-tune emacs lisp completion settings
This commit is contained in:
parent
5bd7066cde
commit
42ebb1394d
13 changed files with 45 additions and 39 deletions
|
|
@ -15,7 +15,7 @@
|
|||
(company-mode 1)
|
||||
(flycheck-mode 1)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((company-yasnippet company-dabbrev-code company-files))))
|
||||
'((company-yasnippet company-capf company-dabbrev-code company-files))))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'emacs-lisp-mode-hook 'editor-config-elisp)
|
||||
|
|
|
|||
27
languages/sql.el
Normal file
27
languages/sql.el
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
;;; SQL -- summary
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
|
||||
;;========== Editor config =========================
|
||||
(defun editor-config-sql ()
|
||||
"Setup editor for SQL."
|
||||
(set-indent 4)
|
||||
(set-width-120))
|
||||
|
||||
;;========== Company config =========================
|
||||
(defun completion-config-sql ()
|
||||
(company-mode 1)
|
||||
(flycheck-mode 1)
|
||||
|
||||
(set (make-local-variable 'company-backends)
|
||||
'(company-yasnippet company-etags company-dabbrev-code company-capf
|
||||
company-files)))
|
||||
|
||||
;;========== Hooks =========================
|
||||
(add-hook 'sql-mode-hook 'editor-config-sql)
|
||||
(add-hook 'sql-mode-hook 'completion-config-sql)
|
||||
|
||||
|
||||
|
||||
;;; sql.el ends here.
|
||||
Loading…
Add table
Add a link
Reference in a new issue