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. 😢 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. The following instructions create a fully blinged-out Emacs-Clojure setup.
* Introduction * 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 #+begin_src sh
brew install clojure/tools/clojure brew install clojure/tools/clojure
brew install leiningen 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)) :hook (clojure-mode . ha-prettify-clojure))
#+end_src #+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 #+begin_src emacs-lisp
(use-package cider (use-package cider
:after clojure-mode :after clojure-mode
@ -276,7 +276,7 @@ Does this now work?
#+RESULTS: #+RESULTS:
"The answer is 42" "The answer is 42"
* LSP, a WIP * 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 #+begin_src emacs-lisp :tangle no
(add-hook 'clojure-mode-hook 'lsp) (add-hook 'clojure-mode-hook 'lsp)
(add-hook 'clojurescript-mode-hook 'lsp) (add-hook 'clojurescript-mode-hook 'lsp)