 
 ;; SQL Mode
 
-(add-hook 'sql-mode-hook 'variable-pitch-mode-jgd)
+(defun sql-mode-jgd ()
+	(variable-pitch-mode-jgd)
+	(setq orgstruct-heading-prefix-regexp "-- ")
+	(orgstruct-mode)
+)
+(add-hook 'sql-mode-hook 'sql-mode-jgd)
 
 ;;; Key Settings
 

(defun jgd-sh-mode-hook ()
  (setq-default sh-basic-offset 2)
  (setq-default sh-indentation 2)
)

(add-hook 'sh-mode-hook 'jgd-sh-mode-hook)

	;; objc-mode-map, java-mode-map, and idl-mode-map
	;; all inherit from it.
  (define-key c-mode-base-map "\C-m" 'newline-and-indent)
	(setq orgstruct-heading-prefix-regexp "// ")
)

;; PHP Mode
