Live data from Hacker News

Emacs follow-mode

stackoverflow.com

1–10 of 52 posts

Re: Emacs follow-mode

#2
I've been using Emacs for 32 years (hard to believe) and never knew about this incredible but apparently obscure feature of Emacs.

On my 27" cinema display, even using 12pt Monaco for my tired old eyes for extreme legibility, I can get 4-5 columns of 90 lines each, when editing source files or text, for an effective "screen length" of 360-450 lines. With 10pt, you can get 500+ lines "on screen" easily.

Docs: http://www.gnu.org/software/libtool/manual/emacs/Follow-Mode... .

Re: Emacs follow-mode

#5
post #2

I've been using Emacs for 32 years (hard to believe) and never knew about this incredible but apparently obscure feature of Emacs. On my 27" cinema display, even using 12pt Monaco for my tired old eyes for extreme legibility, I can get 4-5 columns of 90 lines each, when editing source files or text, for an effective "screen length" of 360-450 lines. With 10pt, you can get 500+ lines "on screen" easily. Docs: http://w…

I've only been using emacs for 18 years and I use 19pt Menlo!

Re: Emacs follow-mode

#7

You can do that in Sublime Text as well: File -> Clone File http://www.sublimetext.com/

Will the cursor automatically swap between the buffers when you reach the edge? (e.g. buffer 1 is showing page 1 and buffer 2 is showing page 2; when you get the end of page 1, the cursor/focus switches to buffer 2, rather than it just being two independently scrolling views into the same file)

Re: Emacs follow-mode

#9
follow-mode is great. I use functions that:

1. split into three or four windows

2. balance the windows (so each takes up equal amount of space)

3. turn on line highlighting

Line highlighting helps because when using follow-mode it can become difficult to quickly spot where the cursor is without it (e.g. if you do an incremental search, the cursor could end up in any one of the many windows).

You can find the functions I wrote here, search for functions that end in "-and-follow":

https://github.com/nileshk/emacs/blob/master/nileshk/functio...

What I'd like to have is a function that dynamically opens just enough windows so that the entire file you are editing is entirely visible (possibly with an upper limit for number of windows that can be set).

Re: Emacs follow-mode

#10
I try to not be surprised by the power and flexibility of Emacs. Having been impressed so much over the years, I've tried to come to know it as simply "awesome". That said, it's hard to not be impressed when it shows itself as even more awesome, even when you thought you were prepared for that eventuality ;)
Post reply on HN