all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* help with double spaces etc.
@ 2002-09-25 17:50 Todd Wylie
  0 siblings, 0 replies; 4+ messages in thread
From: Todd Wylie @ 2002-09-25 17:50 UTC (permalink / raw)



Greetings-

I would really like to be able to have a mode in emacs that would let the user view text in a different manner than emacs saves the buffer ... almost a "revert on save" ability. For example, I would really like to view text in emacs as double-spaced with auto-fill word-wrapping - but to lose the wrapping and line returns when saved.
Are there any libraries that do something like this? I've never written lisp -- is this a very hard thing to write?

Any help would be greatly appreciated....

Thanks-
T.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with double spaces etc.
       [not found] <mailman.1032976286.21833.help-gnu-emacs@gnu.org>
@ 2002-09-26  8:27 ` Kai Großjohann
  2002-09-26 15:18 ` Oliver Scholz
  2002-09-27  1:21 ` Jesper Harder
  2 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2002-09-26  8:27 UTC (permalink / raw)


Todd Wylie <twylie@watson.wustl.edu> writes:

> I would really like to be able to have a mode in emacs that would
> let the user view text in a different manner than emacs saves the
> buffer ... almost a "revert on save" ability. For example, I would
> really like to view text in emacs as double-spaced with auto-fill
> word-wrapping - but to lose the wrapping and line returns when
> saved.
> Are there any libraries that do something like this? I've never
> written lisp -- is this a very hard thing to write?

The "format" feature allows this.  See the variable format-alist.

If you have a shell command which double-spaces a file (well, standard
input) and another un-double-spaces it, then you almost need no Lisp
at all.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with double spaces etc.
       [not found] <mailman.1032976286.21833.help-gnu-emacs@gnu.org>
  2002-09-26  8:27 ` help with double spaces etc Kai Großjohann
@ 2002-09-26 15:18 ` Oliver Scholz
  2002-09-27  1:21 ` Jesper Harder
  2 siblings, 0 replies; 4+ messages in thread
From: Oliver Scholz @ 2002-09-26 15:18 UTC (permalink / raw)


Todd Wylie <twylie@watson.wustl.edu> writes:

[...]
> I would really like to view text in emacs as double-spaced with
> auto-fill word-wrapping - but to lose the wrapping and line returns
> when saved.  Are there any libraries that do something like this?
[...]

I don't know what you mean by "doubble-spaced", but there is a
library name longlines.el that provides the word-wrapping part. I
think it is on the Emacs Lisp List. Or use Google.

    -- Oliver

-- 
5 Vendémiaire an 211 de la Révolution
Liberté, Egalité, Fraternité!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: help with double spaces etc.
       [not found] <mailman.1032976286.21833.help-gnu-emacs@gnu.org>
  2002-09-26  8:27 ` help with double spaces etc Kai Großjohann
  2002-09-26 15:18 ` Oliver Scholz
@ 2002-09-27  1:21 ` Jesper Harder
  2 siblings, 0 replies; 4+ messages in thread
From: Jesper Harder @ 2002-09-27  1:21 UTC (permalink / raw)


Todd Wylie <twylie@watson.wustl.edu> writes:

> For example, I would really like to view text in emacs as
> double-spaced with auto-fill word-wrapping - but to lose the wrapping
> and line returns when saved.

For the double-spacing part you can use the variable `line-spacing', 

,----[ C-h v line-spacing RET ]
| line-spacing's value is nil
| 
| Documentation:
| Additional space to put between lines when displaying a buffer.
| The space is measured in pixels, and put below lines on window systems.
`----

This only changes the display, not the file itself.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-27  1:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1032976286.21833.help-gnu-emacs@gnu.org>
2002-09-26  8:27 ` help with double spaces etc Kai Großjohann
2002-09-26 15:18 ` Oliver Scholz
2002-09-27  1:21 ` Jesper Harder
2002-09-25 17:50 Todd Wylie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.