From 6220c826ba725afaf0e21dbf73acc15d7b2a61d0 Mon Sep 17 00:00:00 2001 From: cspark Date: Tue, 17 Dec 2024 02:36:13 +0000 Subject: [PATCH] Setup postgresql support --- config.org | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index e00f67f..6ed5546 100644 --- a/config.org +++ b/config.org @@ -1317,6 +1317,9 @@ Install the package, enable it and ensure that it always is installed, and then ;; Swap current workspace with one workspace to the left ([?\M-L] . exwm-swap-workspace-right) + ;; Kill current buffer + ([?\M-w] . kill-current-buffer) + ;; Bindings for Edwina ;; Select next window in stack @@ -1494,7 +1497,8 @@ Mingus is a frontend for GNU Emacs to the Music Player daemon. The interface clo ) #+END_SRC -** Sqlite Mode +** Databases +*** Sqlite Mode Emacs has a built in sqlite mode to view sqlite database files and modify them. Configure to be a bit nicer #+BEGIN_SRC emacs-lisp (with-eval-after-load 'sqlite-mode @@ -1518,3 +1522,15 @@ Emacs has a built in sqlite mode to view sqlite database files and modify them. (add-hook 'find-file-hook 'sqlite-find-file-hook) #+END_SRC +*** PGMacs +PGmacs provides an editing interface for the PostgreSQL object-relational DBMS from Emacs. +#+BEGIN_SRC emacs-lisp + (use-package pg + :ensure t) + + (use-package pgmacs + :straight '(pgmacs :type git :host github :repo "emarsden/pgmacs" + :build (:not compile)) + :ensure t + :after pg) +#+END_SRC