Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Any smart Perl editors?

by Anonymous Monk
on Jun 08, 2019 at 22:01 UTC ( #11101145=note: print w/replies, xml ) Need Help??

in reply to Any smart Perl editors?

Emacs in cperl-mode is scanning all subs.

Calling M-x imenu will allow you jumping to a sub chosen from a menu. You can also easily make imenu a navigation bar entry hence you can jump easily from a call to a subs definition.

You can also bind it to a key like M-Ret. That's handy cause the menu defaults to the word under the cursor.

If you want a side pane where you can click with your mouse, you'd have the choice between installing ECB or PDE from elpa. Both draw a side pane using imenu's data.

the other requirement of only showing the code is a bit unclear. It sounds like narrow-to-defun where the code outside the sub is hidden.

In case you want folding, try hide-show-minor-mode.

Replies are listed 'Best First'.
Re^2: Any smart Perl editors?
by LanX (Cardinal) on Jun 09, 2019 at 22:33 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11101145]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2021-06-16 13:11 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (74 votes). Check out past polls.