Live data from Hacker News

Dumb-jump: an Emacs “jump to definition” package

github.com

21–30 of 53 posts

Re: Dumb-jump: an Emacs “jump to definition” package

#21
I was planning to write this as a comment here, but it ended up growing so I published it on my blog post: https://kozikow.wordpress.com/2016/05/21/nice-new-emacs-pack... .

BTW, did you know that you can just do README.org and github parses it? I noticed that you have org file checked in, but README is in md. For example see https://github.com/kozikow/keyremaplinux .

Re: Dumb-jump: an Emacs “jump to definition” package

#23

What do people use to get something like this for C/C++? Also is there any package for auto-completion in C/C++?

I prefer https://github.com/abingham/emacs-ycmd – the engine is also used by the corresponding vim plugin. Gives completion and "jump to".

Rtags is a also nice alternative. Both packages work as daemons outside emacs that read your compile commands.

Re: Dumb-jump: an Emacs “jump to definition” package

#24

What do people use to get something like this for C/C++? Also is there any package for auto-completion in C/C++?

Eclipse CDT (Juno) does it even better. Just hover a mouse over any function call and you can see the body of that function in a scrollable tooltip. You don't need to jump back and forth - you simply follow the code logic and see what the called function does in a tooltip window. This is a huge productivity boost for me and I haven't seen any other IDE doing it.

One other thing no other tool does (AFAIK) is that you can get a "call hierarchy" for a function or any variable and it's laid out as a tree and you can expand each node to trace the calls. This makes understanding the code and refactoring faster by an order of magnitude.

I have avoided Eclipse for years because of cpu/memory usage, but ever since I got a computer with Intel i7 CPU and 16GB of RAM, I have completely switched to Eclipse because it makes me so much more productive than any other environment I tried.

Re: Dumb-jump: an Emacs “jump to definition” package

#26
post #18

Earlier quoted context omitted.

Building a tags file is not trivial.For example if you cloned a random repository on github you'd want to just jump around and not have to have the additional step of generating it and keeping it up to date.

Can't it just be done automatically and on-the-fly using ctags or another appropriate command?

Perhaps, but I've never seen a straightforward guide to doing that. Particuarly that was generic enough that would automatically work with new projects, but I'd be thrilled to be proven wrong.

Re: Dumb-jump: an Emacs “jump to definition” package

#27
post #7

Nice package! Unfortunately is completely falling on its face for my ruby on rails project, but I'm sure it can be improved.

Sorry to hear it didn't work for you. Would you consider opening an issue on github outlining what you were trying to do?

Re: Dumb-jump: an Emacs “jump to definition” package

#28
post #8
post #7

Nice package! Unfortunately is completely falling on its face for my ruby on rails project, but I'm sure it can be improved.

Agreed. Was so hopeful that it would "just work". Still hopeful that it will improve, because the README just sounds sooo good.

Sorry to hear it didn't work for you. Would you consider opening an issue on github outlining what you were trying to do? Then you can be more than just hopeful that it will improve.

Re: Dumb-jump: an Emacs “jump to definition” package

#29
post #2

Still learning VIM user here, do we have something like this?

Vim can do ctags out of the box. If I remember right, the command is C-] (ctrl+ close bracket) to jump to a ctags definition.

For rails projects I wrote a script that kicks off ctags with the following options. "ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --exclude=log --exclude=tmp --exclude=public --languages=ruby --languages=javascript `bundle show --paths` $MY_RUBY_HOME ."

I'd wager there is a better way. That's just the way I roll.

Re: Dumb-jump: an Emacs “jump to definition” package

#30
post #21

I was planning to write this as a comment here, but it ended up growing so I published it on my blog post: https://kozikow.wordpress.com/2016/05/21/nice-new-emacs-pack... . BTW, did you know that you can just do README.org and github parses it? I noticed that you have org file checked in, but README is in md. For example see https://github.com/kozikow/keyremaplinux .

Wow, thanks for writing that blog post! You highlight pretty much all the reasons why I made dumb-jump. Please don't hesitate to make issues on github if/when you run into issues/ideas.
Post reply on HN