Save SQL input history

This commit is contained in:
contrapunctus 2022-04-18 07:45:28 +05:30
parent aa5e499843
commit 4587bada07
1 changed files with 11 additions and 0 deletions

View File

@ -5081,6 +5081,17 @@ nicked from wasamasa's init - https://github.com/wasamasa/dotemacs/blob/934d0b37
;; (set-face-attribute 'default nil :font "-outline-Bitstream Vera Sans Mono-normal-normal-normal-mono-12-*-*-*-c-*-iso8859-1")
#+END_SRC
** SQL
#+BEGIN_SRC emacs-lisp
(use-package sql
;; History is not saved if you kill the buffer; use
;; `comint-quit-subjob' or `comint-kill-subjob' to do so
:hook
(sql-interactive-mode . (lambda ()
(setq-local sql-input-ring-file-name
(locate-user-emacs-file "sql-input-ring")))))
#+END_SRC
* The end
Reset the GC settings, so Emacs doesn't use up tons of RAM.
#+BEGIN_SRC emacs-lisp