[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: true "word wrap"
From: |
Kevin Rodgers |
Subject: |
Re: true "word wrap" |
Date: |
Mon, 09 Dec 2002 14:13:59 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Bijan Soleymani wrote:
I've attached my small file. It remaps C-n and C-p to work by screen
lines instead of logical lines. I know I should make this into a minor
mode, but I am a relative newbie to emacs lisp.
Have you tried screen-lines.el? It's at
http://homepage1.nifty.com/bmonkey/emacs/elisp/screen-lines.el
;;; Commentary:
;; This package provides "Screen Lines" minor mode.
;; In this minor mode, the following standard commands work in terms of
;; screen lines, as opposed to text lines when they are called interactively.
;;
;; `beginning-of-line' (C-a)
;; `end-of-line' (C-e)
;; `next-line' (C-n, down)
;; `previous-line' (C-p, up)
;; `kill-line' (C-k)
;;
;; Screen Lines minor mode should be handy when you edit a file with
;; long lines like this: <DT><A HREF="http://tiny-tools.sourceforge.net/emacs-keys.html"
ADD_DATE="977149523" LAST_VISIT="977488726" LAST_MODIFIED="977149517">Emacs keybinding help
page</A>
;;
;; In order to test this as you see this file, proceed as follows:
;; 1: Load this package: M-x eval-buffer
;; 2: Toggle the mode for the current buffer: M-x screen-lines-mode
;; 3: Move around the above long line.
;;
;; You might want to check screenline.el written by Joshua E. Buhl
;; <josh@math.uni-bonn.de> which does text property business properly and
;; doesn't use `defadvice' facility.
;; Or window-lines.el by enami tsugutomo <enami@ptgd.sony.co.jp> which is
;; lightweight.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
- true "word wrap", Matt Armstrong, 2002/12/04
- Message not available
- Message not available
- Message not available
- Re: true "word wrap", Bijan Soleymani, 2002/12/07
- Re: true "word wrap",
Kevin Rodgers <=