Skip to content

Instantly share code, notes, and snippets.

@ikitommi
Last active December 24, 2015 02:29
Show Gist options
  • Save ikitommi/6731379 to your computer and use it in GitHub Desktop.
Save ikitommi/6731379 to your computer and use it in GitHub Desktop.
Setting Leiningen to work with Idea & Eclipse. profiles.clj go to ~/.lein
{:user {:plugins [[lein2-eclipse "2.0.0"]
[lein-idea "1.0.1"]]}}
~ ⮀ lein version
Leiningen 2.3.2 on Java 1.7.0_40-ea Java HotSpot(TM) 64-Bit Server VM
~ ⮀ lein new jabba
Generating a project called jabba based on the 'default' template.
To see other templates (app, lein plugin, etc), try `lein help new`.
~ ⮀ cd jabba
~/jabba ⮀ tree
.
├── README.md
├── doc
│   └── intro.md
├── project.clj
├── resources
├── src
│   └── jabba
│   └── core.clj
└── test
└── jabba
└── core_test.clj
6 directories, 5 files
~/jabba ⮀ lein eclipse
Created .classpath
Created .project
~/jabba ⮀ lein idea
Cleaning existing project files
Creating project files
~/jabba ⮀ tree -a
.
├── .classpath
├── .gitignore
├── .project
├── LICENSE
├── README.md
├── doc
│   └── intro.md
├── jabba.iml
├── jabba.ipr
├── jabba.iws
├── project.clj
├── resources
├── src
│   └── jabba
│   └── core.clj
├── target
│   └── stale
│   └── extract-native.dependencies
└── test
└── jabba
└── core_test.clj
8 directories, 13 files
~/jabba ⮀ lein repl
nREPL server started on port 52810
REPL-y 0.2.0
Clojure 1.5.1
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
user=> (+ 1 1)
2
user=> (use 'jabba.core)
nil
user=> (foo "Jabba")
Jabba Hello, World!
nil
user=> exit
Bye for now!% ~/jabba ⮀
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment