From 97e12da249709818f9c1ce098d7d7fe3dc7dab4b Mon Sep 17 00:00:00 2001
From: Ashton Wiersdorf <mail@wiersdorf.dev>
Date: Fri, 17 Nov 2023 11:30:57 -0700
Subject: Improve Eglot config a little big

---
 extras/dev.el | 5 +++++
 init.el       | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/extras/dev.el b/extras/dev.el
index 87fa7a2..f1a02d4 100644
--- a/extras/dev.el
+++ b/extras/dev.el
@@ -81,6 +81,10 @@
 ;;;
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+;; Helpful resources:
+;;
+;;  - https://www.masteringemacs.org/article/seamlessly-merge-multiple-documentation-sources-eldoc
+
 (use-package eglot
   ;; no :ensure t here because it's built-in
 
@@ -90,6 +94,7 @@
 
   :custom
   (eglot-send-changes-idle-time 0.1)
+  (eglot-extend-to-xref t)              ; activate Eglot in referenced non-project files
 
   :config
   (fset #'jsonrpc--log-event #'ignore)  ; massive perf boost---don't log every event
diff --git a/init.el b/init.el
index a824c79..585cb3e 100644
--- a/init.el
+++ b/init.el
@@ -21,6 +21,11 @@
 ;;;  - Optional extras
 ;;;  - Built-in customization framework
 
+;;; Guardrail
+
+(when (< emacs-major-version 29)
+  (error (format "Emacs Bedrock only works with Emacs 29 and newer; you have version ~a" emacs-major-version)))
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;;
 ;;;   Basic settings
-- 
cgit v1.2.3