adding sly connection keybinds

This commit is contained in:
Chris Cochrun 2023-05-26 09:45:32 -05:00
parent d262d19ed9
commit f61c8c2537
2 changed files with 18 additions and 2 deletions

View file

@ -3697,7 +3697,15 @@ Using sly makes a lot better common-lisp interaction within emacs.
(defun chris/start-nyxt-repl () (defun chris/start-nyxt-repl ()
"Start the repl and sly connection for nyxt" "Start the repl and sly connection for nyxt"
(interactive) (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 #+end_src
** PDF-Tools ** PDF-Tools

10
init.el
View file

@ -2754,7 +2754,15 @@ targets."
(defun chris/start-nyxt-repl () (defun chris/start-nyxt-repl ()
"Start the repl and sly connection for nyxt" "Start the repl and sly connection for nyxt"
(interactive) (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 (use-package pdf-tools
:mode ("\\.pdf\\'" . pdf-view-mode) :mode ("\\.pdf\\'" . pdf-view-mode)