[Emacs] Add Emacsql configuration

This commit is contained in:
Lucien Cartier-Tilet 2022-07-05 15:30:53 +02:00
parent 7e1d96e677
commit 38837df541
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -5888,6 +5888,28 @@ to anything user-defined. Lets all-the-iconify this!
"Cp" #'copilot-previous-completion))
#+end_src
**** Databases
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-Tools-Databases-73nhsqt09ij0
:END:
A really cool tool in Emacs for manipulating databases is ~emacsql~.
Its able to manipulate Sqlite databases by default, but its also
possible to manipulate MariaDB and PostgreSQL databases by installing
additional packages. For now, I just need Sqlite and PostgreSQL
interfaces, so lets install the relevant packages.
#+begin_src emacs-lisp
(use-package emacsql-psql
:defer t
:after (emacsql)
:straight (:build t))
(with-eval-after-load 'emacsql
(phundrak/major-leader-key
:keymaps 'emacs-lisp-mode-map
:packages '(emacsql)
"E" #'emacsql-fix-vector-indentation))
#+end_src
**** Flycheck
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Programming-languages-Flycheckb446fl6184j0