Thanks to visit codestin.com
Credit goes to github.com

Skip to content

louie-zhang-ai/clojure-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clojure-learn

useful clojure commands

lein new app <app_name> create a new app
lein deps update your dependencies
lein run run your project’s “main” function after making sure all the dependencies are up to date.
lein test run your project’s tests
lein uberjar bundle up your project and all its dependencies in a single executable jar, allowing your to run it with java -jar directly.
lein repl open up a repl

useful resources for learning clojure

cursive notes

Setup Intellij with cursive plugin, set up REPL, and run code

  1. Install cursive plugin
  2. Install Java
  • With Homebrew, brew tap adoptopenjdk/openjdk then brew cask install adoptopenjdk8.
  • If you already have a higher version of Java installed, select Java 8 as the SDK for SearchAPI.
    • File → Project Structure → Project → SDK
  1. Setup the REPL
  • Run → Edit Configurations → add Clojure REPL.
  1. Select clojure.main and Run with Leiningen options.

  2. Run the REPL

Useful intellij/cursive commands

cmd + b find the references
cmd + shift + p run code selection in the REPL
cmd + shift + a search for commands
shift + f6 replace all instances of a variable
cmd + option + f7 find all usages of a variable

setup sublime text for clojure

  1. cmd + shift + p to bring up the package control
  2. open package control: add repository
  3. install ClojureREPL
  4. restart sublime
  5. run the repl: cmd + shift + p and search for SublimeREPL: Clojure

setup emacs

webdev

useful resources

About

resources for learning clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published