From 52ea11b984a965e86010fac5e081c20d739975d8 Mon Sep 17 00:00:00 2001
From: Jessie Hildebrandt <jessieh@jessieh.net>
Date: Sun, 11 Dec 2022 15:36:50 -0500
Subject: [PATCH] Add restclient

---
 init.el | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/init.el b/init.el
index 4dbfa1d..98b4458 100644
--- a/init.el
+++ b/init.el
@@ -753,6 +753,24 @@
   :config
   (yas-global-mode t))
 
+;;====================
+;; restclient (REST Interaction Mode)
+;;====================
+
+;; Load restclient
+(use-package restclient
+  :init
+  (defun restclient ()
+    "Opens the restclient buffer, (re)creating it if not present."
+    (interactive)
+    (if (get-buffer "*restclient*")
+        (switch-to-buffer "*restclient*")
+      (progn
+        (switch-to-buffer (get-buffer-create "*restclient*"))
+        (restclient-mode))))
+  :commands
+  (restclient-mode))
+
 ;;====================
 ;; string-inflection (Word Name Case Conversion)
 ;;====================