[sql] Add SQL support to org-mode

This commit is contained in:
Magnus Therning 2019-03-26 08:56:49 +01:00 committed by smile13241324
parent 3afd959181
commit 6184a391b4
2 changed files with 6 additions and 0 deletions

View file

@ -2043,6 +2043,7 @@ Other:
- Added layer variable =sql-auto-indent= to toggle the use of =sql-indent= package - Added layer variable =sql-auto-indent= to toggle the use of =sql-indent= package
(thanks to David Chen) (thanks to David Chen)
- Added a code formatter for sql-mode (thanks to Seong Yong-ju) - Added a code formatter for sql-mode (thanks to Seong Yong-ju)
- Added connection between =org-mode= and =SQL layer= (thanks to Magnus Therning)
**** Spell-checking **** Spell-checking
- Added spell checking transient state (thanks to Francesc Elies Henar) - Added spell checking transient state (thanks to Francesc Elies Henar)
- Update to flyspell-correct v0.5 (thanks to Boris Buliga) - Update to flyspell-correct v0.5 (thanks to Boris Buliga)

View file

@ -12,6 +12,7 @@
(setq sql-packages (setq sql-packages
'( '(
company company
org
sql sql
;; This mode is more up-to-date than the MELPA one. ;; This mode is more up-to-date than the MELPA one.
;; Turns out that it is available in GNU ELPA but we cannot ;; Turns out that it is available in GNU ELPA but we cannot
@ -167,3 +168,7 @@
(spacemacs|add-company-backends (spacemacs|add-company-backends
:backends company-capf :backends company-capf
:modes sql-mode)) :modes sql-mode))
(defun sql/pre-init-org ()
(spacemacs|use-package-add-hook org
:post-config (add-to-list 'org-babel-load-languages '(sql . t))))