Hi,
I have been experimenting with keeping everything in a single .lisp file for the initial development phase of a project, then cutting it up when it the structure converges.
I am looking for better ways to navigate a single buffer when it gets large, and I would appreciate advice on how others manage this. Of course, SLIME features such as M-. work fine, and forward/backward isearch is useful too, but I was wondering if there was something else. I found a reference to outline-mode [1], but not much besides that. Any advice or tips & tricks would be appreciated.
Thanks,
Tamas
I use HideShow constantly. It allows you to quickly collapse an entire buffer down to just the first line of each block.
http://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.html#Hides...
Occur is also really helpful. You can type M-x occur and then type in a regular expression and it will open a new buffer with all the lines that match that regex. And if you click on any of those lines, it will take you to its location in the original buffer.
http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#index-C_002do-...
-austin
Hi,
you can bind one key to such function. ===================================================================== (defun my-toggle-selective-display () (interactive) (let ((arg (max 1 (progn (back-to-indentation) (current-column))))) (set-selective-display (if selective-display nil arg)))) =====================================================================
Hi,
I have been experimenting with keeping everything in a single .lisp file for the initial development phase of a project, then cutting it up when it the structure converges.
I am looking for better ways to navigate a single buffer when it gets large, and I would appreciate advice on how others manage this. Of course, SLIME features such as M-. work fine, and forward/backward isearch is useful too, but I was wondering if there was something else. I found a reference to outline-mode [1], but not much besides that. Any advice or tips & tricks would be appreciated.
Thanks,
Tamas
[1] http://mumble.net/~campbell/scheme/style.txt
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
____________________________________ With best regards. jingtao.
* Tamas Papp [2011-09-25 11:21] writes:
Hi,
I have been experimenting with keeping everything in a single .lisp file for the initial development phase of a project, then cutting it up when it the structure converges.
I am looking for better ways to navigate a single buffer when it gets large, and I would appreciate advice on how others manage this. Of course, SLIME features such as M-. work fine, and forward/backward isearch is useful too, but I was wondering if there was something else. I found a reference to outline-mode [1], but not much besides that. Any advice or tips & tricks would be appreciated.
Dividing the file into "pages" with ^L might be useful. With that you can page use navigation commands C-[, C-] and also C-x n p.
Helmut