Live data from Hacker News

Emacs follow-mode

stackoverflow.com

31–40 of 52 posts

Re: Emacs follow-mode

#31
post #20
post #19

OTOH if you need follow-mode, aren't your functions too long?

Probably, but sometimes you have to work on other peoples's code. The worst for me was a 312 line function, which nearly caused me to quit.

I don't think that people give this situation enough credit. I once took over a project of about 30,000 lines of C++, with only about one line of commenting per 1,000 lines; and was frustrated with a lot of tools/documentation/suggestions that amounted to "don't write code like that". (Doxygen ended up being my friend)

Re: Emacs follow-mode

#33
Thanks for the post! The way I solved this problem in the past was to rotate one of my monitors 180 degrees. People always make comments when they walk into my cube for the first time, but you sure can fit a lot of txt on the screen. Maybe now I can go back to a normal orientation on my monitor.

Re: Emacs follow-mode

#34
post #19

OTOH if you need follow-mode, aren't your functions too long?

I'd rather have too long than too short. I got some code recently where 3 lines was about the longest function (for a loop), and many functions were one line. It was nearly impossible to follow what was going on because you could never catch the "flow" of the code.

Re: Emacs follow-mode

#37
post #25
post #24

Earlier quoted context omitted.

How old are you current config files?

Oh, probably started them 10-15 years ago. Hard to say. I started around 1978 or so with Emacs on ITS (MIT-AI lab Incompatible Timesharing System), which was built in TECO. So those files wouldn't be very useful. ;-) Then moved to TOPS-20 Emacs in 1979-1980, then to Unix Emacs (Gosmacs) for a while in the early 80's, then, finally to the One True Emacs (Gnu Emacs) in the mid-80's on Sun workstations. I don't highly c…

Don't you find emacs's vanilla key bindings highly inefficient? A few examples:

* A 3 key-combo for "undo", a very frequent operation

* A 3 key-combo for switching between windows

* A 3 key-combo for switching between buffers

Very frequent operations should get assigned to short key combos, even 2 is almost too long, IMO.

Re: Emacs follow-mode

#38
post #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)

Nope.

Re: Emacs follow-mode

#39
post #37
post #25

Earlier quoted context omitted.

Oh, probably started them 10-15 years ago. Hard to say. I started around 1978 or so with Emacs on ITS (MIT-AI lab Incompatible Timesharing System), which was built in TECO. So those files wouldn't be very useful. ;-) Then moved to TOPS-20 Emacs in 1979-1980, then to Unix Emacs (Gosmacs) for a while in the early 80's, then, finally to the One True Emacs (Gnu Emacs) in the mid-80's on Sun workstations. I don't highly c…

Don't you find emacs's vanilla key bindings highly inefficient? A few examples: * A 3 key-combo for "undo", a very frequent operation * A 3 key-combo for switching between windows * A 3 key-combo for switching between buffers Very frequent operations should get assigned to short key combos, even 2 is almost too long, IMO.

Undo is actually 2, C-/. And not all key combinations are created equal. I'd argue that I can hit C-S-j faster than you can hit F1 (especially with caps lock as control)

Re: Emacs follow-mode

#40
post #37
post #25

Earlier quoted context omitted.

Oh, probably started them 10-15 years ago. Hard to say. I started around 1978 or so with Emacs on ITS (MIT-AI lab Incompatible Timesharing System), which was built in TECO. So those files wouldn't be very useful. ;-) Then moved to TOPS-20 Emacs in 1979-1980, then to Unix Emacs (Gosmacs) for a while in the early 80's, then, finally to the One True Emacs (Gnu Emacs) in the mid-80's on Sun workstations. I don't highly c…

Don't you find emacs's vanilla key bindings highly inefficient? A few examples: * A 3 key-combo for "undo", a very frequent operation * A 3 key-combo for switching between windows * A 3 key-combo for switching between buffers Very frequent operations should get assigned to short key combos, even 2 is almost too long, IMO.

Undo is also mapped to C-/ by default, IIRC. About the window switching, I've remapped it to M-o, and M-1, M-2 and M-3 to do splits, etc (I use this more often than repeat commands, so it makes sense)
Post reply on HN