Save SQL input history
This commit is contained in:
parent
aa5e499843
commit
4587bada07
11
init.org
11
init.org
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue