Minor formatting changes for Clojure setup

This commit is contained in:
Howard Abrams 2022-09-12 22:09:26 -07:00
parent 5ff184c0ec
commit 8c609f899e

View file

@ -27,7 +27,7 @@ A literate programming file for programming in Clojure.
I like [[http://clojure.org][Clojure]] as a /modern Lisp/, but I dont get to play with it much anymore. 😢
The following instructions create a fully blinged-out Emacs-Clojure setup.
* Introduction
To get Clojure working on a new system, try the following on a Mac:
To get Clojure working on a new MacOS system using [[http://brew.sh][Homebrew]], try the following:
#+begin_src sh
brew install clojure/tools/clojure
brew install leiningen
@ -77,7 +77,7 @@ Next, install and configure [[https://github.com/clojure-emacs/clojure-mode/][cl
:hook (clojure-mode . ha-prettify-clojure))
#+end_src
Need the IDE feature of [[https://github.com/clojure-emacs/cider][Cider]]:
Need the IDE features associated with [[https://github.com/clojure-emacs/cider][Cider]]:
#+begin_src emacs-lisp
(use-package cider
:after clojure-mode
@ -163,10 +163,10 @@ Need the IDE feature of [[https://github.com/clojure-emacs/cider][Cider]]:
"t" '(:ignore t :which-key "test")
"t t" '("run test" . cider-test-run-test)
"t r" '("rerun test" .cider-test-rerun-test)
"t r" '("rerun test" . cider-test-rerun-test)
"t a" '("run all" . cider-test-run-ns-tests)
"t p" '("run project" .cider-test-run-project-tests)
"t f" '("run failed" .cider-test-rerun-failed-tests)
"t p" '("run project" . cider-test-run-project-tests)
"t f" '("run failed" . cider-test-rerun-failed-tests)
"t R" '("show report" . cider-test-show-report)
"t T" '("toggle test/file" . projectile-toggle-between-implementation-and-test)
@ -276,7 +276,7 @@ Does this now work?
#+RESULTS:
"The answer is 42"
* LSP, a WIP
Check out the goodies in [[https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/][this essay]] for hooking Clojure to LSP. Havent done this yet.
Check out the goodies in [[https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/][this essay]] for hooking Clojure to LSP. Havent done this yet, and to be honest, Im not sure what it buys us beyond what Cider offers.
#+begin_src emacs-lisp :tangle no
(add-hook 'clojure-mode-hook 'lsp)
(add-hook 'clojurescript-mode-hook 'lsp)