• Stars
    star
    193
  • Rank 201,081 (Top 4 %)
  • Language
    Emacs Lisp
  • License
    Eclipse Public Li...
  • Created over 11 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED] The Clojure Cheatsheet for Emacs

This repository is now deprecated, as the functionality was moved upstream to CIDER and helm-cider.

Clojure Cheatsheet for Emacs

The incredibly handy Clojure Cheatsheet, updated for Clojure 1.7.0 and packaged into an easy, fast, searchable, offline form:

screenshot1.png

Status

Ready to use. Based on Clojure 1.7.0.

Installation

If you’re hooked up to MELPA:

M-x package-refresh-contents
M-x package-install RET clojure-cheatsheet

Alternatively just grab the single clojure-cheatsheet.el file and install that in your preferred way.

Keybindings

The cheatsheet doesn’t ship with keybindings - people tend to have strong opinions on them. As a reminder, here’s how to define custom clojure-mode keybindings in your own .emacs config:

Regular Emacs

(eval-after-load 'clojure-mode
  '(progn
     (define-key clojure-mode-map (kbd "C-c C-h") #'clojure-cheatsheet)))

Evil Users

(evil-define-key 'normal
  clojure-mode-map "H" 'clojure-cheatsheet)

Basic Usage

Call M-x clojure-cheatsheet and the cheatsheet will appear. Type in some terms (space separated) to narrow down the list. For example, try typing in sort map to see some functions that deal with sorting maps.

Keys

C-nNext item.
C-pPrevious item.
C-oNext section.
RETJump to the Clojure docs for the current selection.
C-zJump to the Clojure docs for the current selection without closing the cheatsheet.
C-eJump to the Clojure src for the current selection.
C-h mFull list of keyboard shortcuts.

Advanced Usage

This package stands on top of Helm. The variable helm-source-clojure-cheatsheet is available if you want to mix it in as a Helm source.

See Also

If you like this, and you like org-mode, then you’ll probably like helm-orgcard too…

Building

The constant clojure-cheatsheet-hierarchy defines the contents of the cheatsheet. See the docstring of that constant for a full description of the format.

There is a test suite in clojure-cheatsheet-tests.el that checks that every symbol defined in the cheatsheet is valid, and that every symbol defined by Clojure is in the sheet (with a few explicit exceptions).

To run the test suite:

  • Clone the project.
  • Open clojure-cheatsheet-tests.el.
  • Call M-x eval-buffer.
  • Call M-x cider-jack-in to start a Clojure REPL.
  • Call M-x ert <RET> to run the test suite.
  • Optional: Marvel at Emacs’ support for test suites.

More Repositories

1

cider

The Clojure Interactive Development Environment that Rocks for Emacs
Emacs Lisp
3,539
star
2

clojure-mode

Emacs support for the Clojure(Script) programming language
Emacs Lisp
909
star
3

clj-refactor.el

A CIDER extension that provides powerful commands for refactoring Clojure code.
Emacs Lisp
771
star
4

cider-nrepl

A collection of nREPL middleware to enhance Clojure editors with common functionality like definition lookup, code completion, etc.
Clojure
673
star
5

sayid

A debugger for Clojure
Clojure
406
star
6

orchard

A fertile ground for Clojure tooling
Clojure
326
star
7

refactor-nrepl

nREPL middleware to support refactorings in an editor agnostic way
Clojure
257
star
8

inf-clojure

Basic interaction with a Clojure subprocess
Emacs Lisp
249
star
9

squiggly-clojure

Flycheck checker for Clojure, using eastwood and core.typed.
Emacs Lisp
204
star
10

clomacs

Simplifies Emacs Lisp interaction with Clojure and vice versa.
Emacs Lisp
200
star
11

clojure-ts-mode

The next generation Clojure major mode for Emacs, powered by TreeSitter
Emacs Lisp
129
star
12

clj-suitable

ClojureScript "IntelliSense" support for JS objects and their properties/methods. Via figwheel and Emacs CIDER.
Clojure
114
star
13

ac-cider

[DEPRECATED] Emacs auto-complete backend for CIDER
Emacs Lisp
80
star
14

ac-nrepl

[DEPRECATED] Emacs auto-complete backend for nrepl completions
Emacs Lisp
74
star
15

helm-cider

Helm interface to CIDER
Emacs Lisp
66
star
16

parseclj

Clojure Parser for Emacs Lisp
Emacs Lisp
60
star
17

cljs-tooling

[DEPRECATED] Tooling support for ClojureScript
Clojure
60
star
18

parseedn

EDN parser for Emacs Lisp
Emacs Lisp
59
star
19

example-config

A sample Emacs config for Clojure development to ease your pain
Emacs Lisp
37
star
20

haystack

Let's make the most of Clojure's infamous stacktraces!
Clojure
34
star
21

enrich-classpath

Enriches Lein/deps.edn dependency trees with Java sources, JDK sources, javadocs, etc
Clojure
32
star
22

cider-decompile

An extension to CIDER which provides a decompilation command
Emacs Lisp
27
star
23

cider-hydra

Hydras for CIDER
Emacs Lisp
24
star
24

cider-eval-sexp-fu

eval-sexp-fu.el extensions for CIDER.
Emacs Lisp
12
star
25

hackingcider

HTML
10
star
26

clojuredocs-export-edn

Daily EDN exports of ClojureDocs's database.
Clojure
9
star
27

logjam

An interactive, nrepl-oriented logging backend
Clojure
1
star
28

docs.cider.mx

CIDER's documentation site
Handlebars
1
star