Closed xged closed 4 years ago
E.g. Without the feature I get a list of faces (defined by defface
) in my .spacemacs file/buffer and for each one of them >> go to their definition (gd
) >> copy the definition >> go back to .spacemacs buffer >> paste the definition in it >> modify the definition. (Definitions are scattered).
I would use the feature even just for exploring for the convenience of not leaving the current buffer (and not creating a new one).
If you add emacs-lisp
layer, it will show you the definition at point in the echo area without doing anything.
@tuhdo Isn't that too much of a visual noise and a performance penalty to have it all the time? But I would prob use it as a toggle when heavy exploring.
@xged nope. It is because if a symbol is shown, it is already loaded into Emacs, and is only triggered when you place point on a symbol. I don't think it's a visual noise since it's only shown at the bottom and only when you place point on a symbol.
This is Emacs, not Vim :)
@tuhdo The point can be moved very fast :-), but it probably waits a second or a half for the definition to show up as most of the similar tools do, so that solves my silly 'concerns'. Still a very different problem then pasting.
For your problem, I think it's easier to create a window that is clone of the current window (by simply splitting with :vs
or :sp
, then move point there and jump to function definition).
@tuhdo I did it fast enough with macros. Nonetheless, I think the feature is important (because function definitions in general are super important).
Take a look at lispy. Specifically these features, as well as M-.
and M-,
.
That's nice :-)
This issue appears to have been resolved.
I don't agree that the initial feature request was satisfied. But I don't see much traction here. So I am not sure what to do. 😸 😿
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
I'm not sure to understand the feature, can you provide more info on the feature and a use case to be sure there is no missunderstanding ?