Skip to content

Commit 1fc922c

Browse files
committed
Add refresh and materialized to PostgreSQL keywords list
I've started using materialized views in PostgreSQL more often, so I want those words highlighted like builins in my scripts and interactive SQL sessions.
1 parent b9fee52 commit 1fc922c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@
222222
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
223223

224224
;; Do initialization for SQL Mode.
225+
(require 'sql)
225226
(add-to-list 'auto-mode-alist '("\\.pg\\'" . sql-mode))
227+
(push
228+
(sql-font-lock-keywords-builder 'font-lock-builtin-face nil "refresh" "materialized")
229+
sql-mode-postgres-font-lock-keywords)
226230

227231
;; Do initialization for HTML Mode.
228232
(add-hook 'html-mode-hook

0 commit comments

Comments
 (0)