Files
.emacs.d/modules/languages/siren-sql.el
Jim Myhrberg 8ed4a4e6f5 refactor: Visual indentation guides
- Switch from highlight-indentation package to highlight-indent-guides.
- Activate visual indentation in a prog-mode hook, rather than doing
  within each individual major mode. It was already done within all
  major modes based on prog-mode anyway.
- Add new siren-display-indetation module and function as a central way
  to enable visual indetation guides. This makes switching the
  underlying package at some point in the future much easier.
2020-01-26 18:53:44 +00:00

31 lines
536 B
EmacsLisp

;;; siren-sql.el --- jimeh's Emacs Siren: sql-mode configuration.
;;; Commentary:
;; Basic configuration for sql-mode.
;;; Code:
(require 'siren-rainbow)
(use-package sql-mode
:ensure nil ;; loaded from emacs built-ins
:mode "\\.sql\\'"
:hook (sql-mode . siren-sql-mode-setup)
:init
(defun siren-sql-mode-setup ()
(setq tab-width 2)
(company-mode +1)))
(use-package sqlformat
:hook
(sql-mode . sqlformat-mode)
:custom
(sqlformat-command 'pgformatter))
(provide 'siren-sql)
;;; siren-sql.el ends here