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)