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:
Maciej Szlosarczyk 2017-10-29 00:52:41 +03:00
parent 5bd7066cde
commit 42ebb1394d
No known key found for this signature in database
GPG key ID: 94798DD7F02D70C1
13 changed files with 45 additions and 39 deletions

27
languages/sql.el Normal file
View 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.