Essential Leiningen Plugins

Table of Contents

You will want to be able to update your leinengen dependencies, and perform some basic formatting/linting.

1 Setup

Leiningen profiles are merged, so to add extra plugins to your user namespace you may simply:

Create a file ~/.lein/profiles.clj:

{:user {:plugins [[lein-ancient "0.6.15"]
                  [lein-cljfmt "0.9.2"]
                  [lein-kibit "0.1.8"]
                  [lein-pprint "1.3.2"]]
        :dependencies []}}

You now have lein-ancient, cljfmt, kibit and lein-pprint.

2 Usage

In your project directory:

  lein ancient
  lein ancient upgrade

  lein cljfmt check

  lein kibit

  lein pprint

3 More

Find more plugins here: https://wiki.leiningen.org/Plugins

Copyright 2023 Joseph Graham (joseph@xylon.me.uk)