i'm editing a C file in emacs. what's the most convenient way to get a split pane with a list (index) of all the functions in a file, and selecting those would jump to that function in the main buffer?
Conversation
Notices
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:08:35 JST minute -
jnpn (jnpn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:14:09 JST jnpn @mntmn I think people make custom imenu configuration for that. Never did it myself though
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:15:40 JST minute @jccpalmer what's the problem here?
-
JC Palmer (jccpalmer@toot.community)'s status on Saturday, 24-Aug-2024 21:15:41 JST JC Palmer > i’m editing a C file in emacs.
Um, what? 😣
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:18:25 JST minute semantic-speedbar-analysis is pretty cool but it shows only the current function and its locals etc, now just missing an overview of all functions in the file
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:20:04 JST minute @jccpalmer emacs is my main editor and i've written lots of software (and thousands of emails) with it... i guess different people have different needs
-
JC Palmer (jccpalmer@toot.community)'s status on Saturday, 24-Aug-2024 21:20:05 JST JC Palmer @mntmn Sounds like my worst nightmare. I like Emacs, but maybe I’m just not advanced enough for what you’re doing haha
-
pera (trobador@mastodon.social)'s status on Saturday, 24-Aug-2024 21:20:22 JST pera @mntmn there are a few options but if you are using a distribution like Doom Emacs I believe you should have this out of the box: https://github.com/emacs-lsp/lsp-ui#lsp-ui-imenu
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:20:38 JST minute @poppis not running external tools manually and stuff (ctags?!), ideally something that would automatically analyze the file
In conversation permalink -
JP (poppis@eliitin-some.fi)'s status on Saturday, 24-Aug-2024 21:20:49 JST JP @mntmn also, I don't know what is your definition of convenient
In conversation permalink -
JP (poppis@eliitin-some.fi)'s status on Saturday, 24-Aug-2024 21:20:54 JST JP @mntmn years ago there was speedbar
In conversation permalink -
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 21:30:37 JST minute now trying this https://emacs-lsp.github.io/lsp-mode/tutorials/CPP-guide/
In conversation permalink Attachments
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 22:02:38 JST minute OK, it mostly works now with lsp-treemacs, installation was inconvenient though
In conversation permalink Attachments
-
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 22:15:44 JST minute the issue was that i had debian elpa-... packages installed and mixed with stuff in .emacs.d/elpa, cleaned that up now and now everything is mega smooth. wrote a quick compile_flags.txt for my project and here we goooo
In conversation permalink -
minute (mntmn@mastodon.social)'s status on Saturday, 24-Aug-2024 22:19:12 JST minute this rules
In conversation permalink Attachments
-
Steinar Bang (steinarb@mastodon.social)'s status on Saturday, 24-Aug-2024 23:57:31 JST Steinar Bang @mntmn treesitter mode for C/C++ is probably worth a try.
Doesn't use a separate process but you need to download and build an .so and put it where emacs can find it (can be done interactively when on a GNU/linux or unix-based OS)
My experience with installing treesitter modes here: https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00054.html
In conversation permalink Attachments
-