221 points · by cpr · 15y ago · 50 comments
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... .
32 years of emacs! Wow!
But still learning Emacs, I still run it in viper mode. My old habits die hard. I love to troll the other unix admins at work with vi keybindings in emacs.
I'm assuming you aren't rotating your screen under linux, xinerama isn't very robust on things like that.
Discovering M-x apropos was probably the moment I realised emacs wasn't at all scary, and in fact just wanted to help and make me productive. A big hurdle with any text editor is having the discipline to realise that if you're doing something repetitive and boring, you're probably doing it wrong. All the built in documentation and help functions in emacs give you a big head start finding the right way to do what you're doing, and you'll just randomly pick up useful stuff along the way.
Beyond that, it's just finding what modes are useful for you. Magit is incredible, org-mode's great if you do that sort of thing, and any language with a REPL thrives under emacs.
Most people I know just learn enough elisp to keep their .emacs up to date, so don't be too intimidated by that, but more power to you if you eventually master it.
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 customize Emacs at all, actually. I tend to like a mostly vanilla installation that I can run in terminal mode both locally in Terminal (OS X) and remotely via ssh without even thinking about it.
* 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.
nmap <silent> <Leader>ef :vsplit<bar>wincmd l<bar>exe "norm! Ljz<c-v><cr>"<cr>:set scb<cr>:wincmd h<cr>:set scb<cr>
Source: http://markmail.org/message/kbnyhxffy6zs7picEdit: You can record a macro to do something similar—create a vertical split, switch to it, disable scroll-bind, go forwards one screen, enable scrollbind, then switch to the other window. This doesn't lose synchronisation but it doesn't take 'scrolloff' into account either.
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).
:set cursorline
Note: it's slow on old computers http://vim.1045645.n5.nabble.com/Vim-7-slows-down-when-highl...That said, I guess it's almost impressive that Sublime lets you "Clone", since TextMate is even more restricted in this regard, iirc. That's actually kind of sad, though.
I also use Emacs for text editing, and I'm writing a major manifesto right now which is thousands of lines.