diff --git a/modules/lang/common-lisp/config.el b/modules/lang/common-lisp/config.el index fc566b540..41a03e988 100644 --- a/modules/lang/common-lisp/config.el +++ b/modules/lang/common-lisp/config.el @@ -80,62 +80,61 @@ bin/doom while packages at compile-time (not a runtime though)." :map lisp-mode-map :desc "Sly" "'" #'sly :desc "Sly (ask)" ";" (λ! () (let ((current-prefix-arg '-)) (sly nil nil t))) - (:prefix ("g" . "go") - "b" #'sly-pop-find-definition-stack - "d" #'sly-edit-definition - "D" #'sly-edit-definition-other-window - "n" #'sly-next-note - "N" #'sly-previous-note - "s" #'sly-stickers-next-sticker - "S" #'sly-stickers-prev-sticker) - (:prefix ("h" . "help") - "<" #'sly-who-calls - ">" #'sly-calls-who - "~" #'hyperspec-lookup-format - "#" #'hyperspec-lookup-reader-macro - "a" #'sly-apropos - "b" #'sly-who-binds - "d" #'sly-disassemble-symbol - "h" #'sly-describe-symbol - "H" #'sly-hyperspec-lookup - "m" #'sly-who-macroexpands - "p" #'sly-apropos-package - "r" #'sly-who-references - "s" #'sly-who-specializes - "S" #'sly-who-sets) - (:prefix ("c" . "compile") - "c" #'sly-compile-file - "C" #'sly-compile-and-load-file - "f" #'sly-compile-defun - "l" #'sly-load-file - "n" #'sly-remove-notes - "r" #'sly-compile-region) - (:prefix ("e" . "evaluate") - "b" #'sly-eval-buffer - "e" #'sly-eval-last-expression - "E" #'sly-eval-print-last-expression - "f" #'sly-eval-defun - "F" #'sly-undefine-function - "r" #'sly-eval-region) - (:prefix ("m" . "macro") - "e" #'+common-lisp/macrostep/body - "E" #'macrostep-expand) - (:prefix ("r" . "repl") - "c" #'sly-mrepl-clear-repl - "q" #'sly-quit-lisp - "r" #'sly-restart-inferior-lisp - "s" #'sly-mrepl-sync) - (:prefix ("s" . "stickers") - "b" #'sly-stickers-toggle-break-on-stickers - "c" #'sly-stickers-clear-defun-stickers - "C" #'sly-stickers-clear-buffer-stickers - "f" #'sly-stickers-fetch - "r" #'sly-stickers-replay - "s" #'sly-stickers-dwim) - (:prefix ("t" . "trace") - "t" #'sly-toggle-trace-fdefinition - "T" #'sly-toggle-fancy-trace - "u" #'sly-untrace-all)) + (:prefix ("g" . "Go") + :desc "Go back" "b" #'sly-pop-find-definition-stack + :desc "Go to" "d" #'sly-edit-definition + :desc "Go to (other window)" "D" #'sly-edit-definition-other-window + :desc "Next note" "n" #'sly-next-note + :desc "Previous note" "N" #'sly-previous-note + :desc "Next sticker" "s" #'sly-stickers-next-sticker + :desc "Previous sticker" "S" #'sly-stickers-prev-sticker) + (:prefix ("h" . "Help") + :desc "Who calls" "<" #'sly-who-calls + :desc "Calls who" ">" #'sly-calls-who + :desc "Lookup format directive" "~" #'hyperspec-lookup-format + :desc "Lookup reader macro" "#" #'hyperspec-lookup-reader-macro + :desc "Apropos" "a" #'sly-apropos + :desc "Who binds" "b" #'sly-who-binds + :desc "Disassemble symbol" "d" #'sly-disassemble-symbol + :desc "Describe symbol" "h" #'sly-describe-symbol + :desc "HyperSpec lookup" "H" #'sly-hyperspec-lookup + :desc "Who macro-expands" "m" #'sly-who-macroexpands + :desc "Apropos package" "p" #'sly-apropos-package + :desc "Who references" "r" #'sly-who-references + :desc "Who specializes" "s" #'sly-who-specializes + :desc "Who sets" "S" #'sly-who-sets) + (:prefix ("c" . "Compile") + :desc "Compile file" "c" #'sly-compile-file + :desc "Compile/load file" "C" #'sly-compile-and-load-file + :desc "Compile toplevel form" "f" #'sly-compile-defun + :desc "Load file" "l" #'sly-load-file + :desc "Remove notes" "n" #'sly-remove-notes + :desc "Compile region" "r" #'sly-compile-region) + (:prefix ("e" . "Evaluate") + :desc "Evaulate buffer" "b" #'sly-eval-buffer + :desc "Evaluate last" "e" #'sly-eval-last-expression + :desc "Evaluate/print last" "E" #'sly-eval-print-last-expression + :desc "Evaluate defun" "f" #'sly-eval-defun + :desc "Undefine function" "F" #'sly-undefine-function + :desc "Evaluate region" "r" #'sly-eval-region) + (:prefix ("m" . "Macro") + :desc "Macrostep" "E" #'macrostep-expand) + (:prefix ("r" . "REPL") + :desc "Clear REPL" "c" #'sly-mrepl-clear-repl + :desc "Quit connection" "q" #'sly-quit-lisp + :desc "Restart connection" "r" #'sly-restart-inferior-lisp + :desc "Sync REPL" "s" #'sly-mrepl-sync) + (:prefix ("s" . "Stickers") + :desc "Toggle breaking stickers" "b" #'sly-stickers-toggle-break-on-stickers + :desc "Clear defun stickers" "c" #'sly-stickers-clear-defun-stickers + :desc "Clear buffer stickers" "C" #'sly-stickers-clear-buffer-stickers + :desc "Fetch stickers" "f" #'sly-stickers-fetch + :desc "Replay stickers" "r" #'sly-stickers-replay + :desc "Add/remove sticker" "s" #'sly-stickers-dwim) + (:prefix ("t" . "Trace") + :desc "Toggle" "t" #'sly-toggle-trace-fdefinition + :desc "Toggle (fancy)" "T" #'sly-toggle-fancy-trace + :desc "Untrace all" "u" #'sly-untrace-all)) (when (featurep! :feature evil +everywhere) (add-hook 'sly-mode-hook #'evil-normalize-keymaps)