Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliyh/re-jump.el
emacs navigation for re-frame projects
https://github.com/oliyh/re-jump.el
cider clj cljs clojure clojurescript emacs emacs-lisp re-frame
Last synced: about 2 months ago
JSON representation
emacs navigation for re-frame projects
- Host: GitHub
- URL: https://github.com/oliyh/re-jump.el
- Owner: oliyh
- Created: 2017-11-20T13:38:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T19:48:21.000Z (over 5 years ago)
- Last Synced: 2024-06-12T06:38:43.014Z (3 months ago)
- Topics: cider, clj, cljs, clojure, clojurescript, emacs, emacs-lisp, re-frame
- Language: Emacs Lisp
- Size: 6.84 KB
- Stars: 74
- Watchers: 5
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# re-jump.el
emacs navigation for re-frame projects## What does it do?
Assuming your re-frame registrations use fully qualified keywords (if they don't, they should) you may have source files that look like this:```clj
(ns app.model
(:require [re-frame.core :as re-frame]))
(re-frame/reg-event-db
::foo
...)
``````clj
(ns app.view
(:require [re-frame.core :as re-frame]
[app.model :as model]))
(defn bar []
(re-frame/dispatch [::model/foo]))
```If you are editing `app.view` you may be interested in what the `foo` event does. Unfortunately CIDER won't let you `jump-to-var` on a keyword because it's not a var! You have to manually visit the `model` namespace amd search for `foo`, possibly skipping past other references to it until you find the declaration where it gets registered.
This becomes a pain when your code gets bigger.
_re-jump_ gives you the same experience jumping to re-frame registrations as CIDER does for vars: with your cursor on a keyword press `M->` (this is `M-.` with the shift key).
Voila!