Skip to content

Give ad a prefix variant #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2016
Merged

Give ad a prefix variant #325

merged 1 commit into from
Apr 12, 2016

Conversation

expez
Copy link
Member

@expez expez commented Apr 7, 2016

The new prefix variant can be used to declare the thing at point,
instead of the surrounding def.

This is useful for the times when you've just written, or am about to
write, the name of a symbol occuring later in the file.

"Add a declare for the current def near the top of the buffer.

With a prefix add a declaration for the symbol under the cursor instead.

See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-declaration"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have a gif for the prefix version as well on the wiki

benedekfazekas added a commit that referenced this pull request Apr 12, 2016
If we are outside a def we default to declare thing at point as
discussed on #325. The prefix is still needed to declare thing at point
if inside a def.
The new prefix variant can be used to declare the thing at point,
instead of the surrounding def.

This is useful for the times when you've just written, or am about to
write, the name of a symbol occuring later in the file.
@expez expez force-pushed the declare-symbol-at-point branch from a2a8355 to ed8e30c Compare April 12, 2016 14:37
@expez expez merged commit 050b9c2 into master Apr 12, 2016
@expez expez deleted the declare-symbol-at-point branch April 12, 2016 14:47
expez pushed a commit that referenced this pull request Apr 12, 2016
If we are outside a def we default to declare thing at point as
discussed on #325. The prefix is still needed to declare thing at point
if inside a def.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants