[OS X Emacs] Re: Aquamacs Cursor movement and word wrapping: C-e, C-a, C-n, C-p

M A markoilcan at gmail.com
Thu Apr 29 22:11:48 EDT 2010

On Thu, Apr 29, 2010 at 6:02 PM, Howard Melman <hmelman at verizon.net> wrote:
> I did try just turning off soft wrapping but then cut and paste to
> other apps is problematic. I "think" I want to use soft wrapping but
> have C-a move to the start of a line and not the paragraph. I also
> think I'd be fine with a solution that used hard wrapping but when
> using mac text copy (cmd-c), converted the text in the pasteboard (I
> think that's the right mac term) to soft wrapping so other apps
> receive what they are expecting. I have no idea if such a thing
> exists. I have written an unwrap-line function and use it explicitly
> on occasion, but it's awkward.
> There is another case I had forgotten which reading the thread of the
> thread reminded me of. With all wrapping turned off, lines longer than
> the window width can be displayed truncated or not (that is with a \
> at the line end and the text continuing on the next line). I'm not
> sure what visual-line-mode would do, but I would expect C-a to move to
> the beginning of the buffer line in this case and not the "visual
> line". If this discussion was referring only to this case and I had
> misunderstood, I apologize.

It sounds like you want to turn on visual-line-mode. In this case C-a moves
you to the beginning of the visual line rather than to the beginning of the
buffer line and there are no carriage returns (i.e. \n) when copying and
pasting to other applications.

Mark A

More information about the MacOSX-Emacs mailing list