help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Free cursor positioning.


From: PJ Weisberg
Subject: Re: Free cursor positioning.
Date: Fri, 5 Aug 2011 16:03:05 -0700

On Fri, Aug 5, 2011 at 1:25 PM, Drew Adams <drew.adams@oracle.com> wrote:
>> In other words, ignore the position of <eoln> when moving the
>> point around, and add spaces where ever necessary to allow for
>> completely free cursor motion in the buffer region. Then, when
>> saving the file, automatically trim trailing spaces of each line.
>
> Again, `M-x picture-mode'.

The thing is, when you're in picture mode, you're *not* in C mode,
perl mode, or whatever mode you really want to be in.  He just wants a
few features of picture mode to be on all the time.  Something like:

(require 'picture)
(global-set-key (kbd "<right>") 'picture-forward-column)
(global-set-key (kbd "<up>") 'picture-move-up)
(global-set-key (kbd "<down>") 'picture-move-down)
(add-hook 'before-save-hook 'delete-trailing-whitespace)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]