diff options
| -rw-r--r-- | oni-sql.el | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2026.0401.112757 +;; Version: 2026.0401.124124 ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -29,5 +29,15 @@ (define-key sql-mode-map (kbd "C-c C-b") 'sql-set-sqli-buffer) +(defun oni-sql-send-input () + (interactive nil sql-interactive-mode) + (outline-hide-body) + (comint-send-input)) + +(add-hook 'sql-mode-hook 'outline-minor-mode) +(add-hook 'sql-interactive-mode-hook 'outline-minor-mode) + +(define-key sql-interactive-mode-map (kbd "RET") 'oni-sqli-send-input) + (provide 'oni-sql) ;;; oni-sql.el ends here |
