Search code examples
emacsrefactoringbookmarks

Refactoring a big file in emacs


I'm refactoring a big piece of code in one file in Emacs.

What is the best way to simplify jumping to several places in a big emacs buffer? Currently I'm using search (C-S) and custom comments - "markers". This becoming quiclkly unreliable.

Ideally I would like to have the same file open in several buffers, so I can switch between them using C-X B.

What are your solutions?


Solution

    • It seems that what you are looking for is Indirect-Buffers.

    • Personally, I find that splitting my window (C-x 2) is a great help.

    • Also bookmarks come to mind.