EmacsWiki, where have you been all my life?

samtregar on 2004-11-30T20:41:17

I just found the EmacsWiki site. I'm stunned that such an awesome repository of Emacs knowledge existed without my knowledge. It's not that I'm some kind of Emacs guru, but I sure like to learn a new trick every now and again.

So far the best thing I've found is a cool function called indirect-region. To use it, just mark a region you want to edit separately and execute the function. A new buffer opens containing the marked text. All edits are reflected in the source doc. But the really cool thing is that the new buffer can have a different major mode from the source! So when I'm writing an email and want to work on a long Perl example I can just pop the region into a cperl-mode window! Very cool. To make this even easier I've set the default mode for indirect-region to cperl-mode.

Thanks Mario Lang!

-sam


Re: EmacsWiki, where have you been all my life?

ybiC on 2004-12-01T16:15:39

Emacs Wiki?

The mere thought creates visions of flames, red pitchforks, and bubbling lava to a vim user like /me.

8^p

Re: EmacsWiki, where have you been all my life?

samtregar on 2004-12-01T16:22:30

Burn feeble VIM user, burn! Mooohahahaha.

-sam