aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:15:46 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:21:20 +0100
commit427d5d9a81449cd2ba0d22203d51871bbf0683dd (patch)
treedfea63604647a466f567fe33c5d136377cf45eba
parent125ad6488ffebd9344602b2b53f589c1838484e3 (diff)
fix: Adjust dependency loading to please the compiler0.1.0
-rw-r--r--nyxt.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/nyxt.el b/nyxt.el
index 720b9f7..83d7186 100644
--- a/nyxt.el
+++ b/nyxt.el
@@ -26,9 +26,10 @@
;;; Code:
-(require 'sly)
-(eval-when-compile
- (require 'cl-lib))
+(eval-and-compile
+ (require 'cl-lib)
+ (require 'sly)
+ (sly-setup))
(defgroup nyxt nil
"Nyxt browser integrations and tweaks."
@@ -111,7 +112,7 @@
Switch to the corresponding EXWM workspace and if the Nyxt window is visible,
focus on it, otherwise switch to its underlying buffer."
- (when (require 'exwm nil t)
+ (when (eval-and-compile (require 'exwm nil t))
(when-let* ((nyxt-buffer
(car (cl-remove-if-not
(lambda (buffer)