changeset 199:6fc9f31ee7e0

sql-mode: enable indentation, upcasing, and Postgres
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sun, 08 Dec 2019 15:09:07 -0500
parents 542bdd6b7739
children 23a041c74548
files dotemacs.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -31,6 +31,11 @@
 
 (elpy-enable)
 
+;; I want sql-mode to have a couple of extra bells and whistles.
+;; Indentation and upcasing of keywords.
+(add-hook 'sql-mode-hook 'sqlup-mode)
+(add-hook 'sql-mode-hook 'sqlind-minor-mode)
+
 ;; Let's highlight the current line in windows
 (global-hl-line-mode)
 
@@ -462,6 +467,7 @@
  '(select-enable-clipboard t)
  '(select-enable-primary t)
  '(show-paren-mode t)
+ '(sql-product (quote postgres))
  '(sqlup-blacklist
    (quote
     ("scope" "id" "name" "output" "indicator" "state" "a" "year" "day" "month" "c" "label" "value" "method")))