From f61c8c25374649e929dd8c29112d07ff13d75aca Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 26 May 2023 09:45:32 -0500 Subject: [PATCH] adding sly connection keybinds --- README.org | 10 +++++++++- init.el | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index ff1183bd..98e3e754 100644 --- a/README.org +++ b/README.org @@ -3697,7 +3697,15 @@ Using sly makes a lot better common-lisp interaction within emacs. (defun chris/start-nyxt-repl () "Start the repl and sly connection for nyxt" (interactive) - (sly-connect "localhost" 4006))) + (sly-connect "localhost" 4006)) + :general + (chris/leader-keys + :states 'normal + :keymaps 'lisp-mode-shared-map + "os" 'sly) + + (general-def 'normal lisp-mode-shared-map + "gcr" 'sly)) #+end_src ** PDF-Tools diff --git a/init.el b/init.el index ecfeeb33..0c13600d 100644 --- a/init.el +++ b/init.el @@ -2754,7 +2754,15 @@ targets." (defun chris/start-nyxt-repl () "Start the repl and sly connection for nyxt" (interactive) - (sly-connect "localhost" 4006))) + (sly-connect "localhost" 4006)) + :general + (chris/leader-keys + :states 'normal + :keymaps 'lisp-mode-shared-map + "os" 'sly) + + (general-def 'normal lisp-mode-shared-map + "gcr" 'sly)) (use-package pdf-tools :mode ("\\.pdf\\'" . pdf-view-mode)