95494033e8c2b13cea41f11695ba15ef2ce1c268
commit 95494033e8c2b13cea41f11695ba15ef2ce1c268
Author: Simon Watson <spw01@protonmail.com>
Date: Tue Feb 1 16:41:32 2022 -0500

Including nyxt config and fixed elpher ansi colors

diff --git a/emacs/.emacs-all b/emacs/.emacs-all
index 43ff401..8d68319 100644
--- a/emacs/.emacs-all
+++ b/emacs/.emacs-all
@@ -61,7 +61,7 @@

;; Gopher browser
(straight-use-package 'elpher)
-(straight-use-package 'ansi-color)
+(straight-use-package 'xterm-color)
(defun display-ansi-colors ()
(interactive)
(let ((inhibit-read-only t))
diff --git a/nyxt/init.lisp b/nyxt/init.lisp
new file mode 100644
index 0000000..7ba586e
--- /dev/null
+++ b/nyxt/init.lisp
@@ -0,0 +1,27 @@
+(defvar *dkeymap* (make-keymap "dkeymap"))
+(define-key *dkeymap*
+ "C-r" 'load-init-file
+ "x" 'delete-current-buffer
+ "b" 'switch-buffer)
+
+;;; Search engines
+(defvar *my-search-engines*
+ (list
+ '("kagi" "https://kagi.com/search?q=~a" "https://kagi.com/")))
+
+;;; See: https://github.com/atlas-engineer/nyxt/issues/447
+(define-mode my-mode ()
+ "Dummy mode for my own keybindings"
+ ((keymap-scheme (keymap:make-scheme
+ scheme:cua *dkeymap*
+ scheme:emacs *dkeymap*
+ scheme:vi-normal *dkeymap*))))
+
+(define-configuration (buffer web-buffer)
+ ;;;((default-modes (append '(vi-normal-mode) %slot-default%))))
+ ((default-modes (append '(vi-normal-mode) %slot-default%))))
+
+(define-configuration buffer
+ ((search-engines (append %slot-default%
+ (mapcar (lambda (engine) (apply 'make-search-engine engine))
+ *my-search-engines*)))))