From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Whipp Subject: Re: Is there a way to selectively change the line spacing for visual line mode? Date: Mon, 6 Aug 2012 11:29:59 +1000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0d25ef007c504c68ed00b Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyC8y-0007xL-Ah for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 21:30:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyC8w-0005Qp-1I for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 21:30:04 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:62386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyC8v-0005QK-D5 for emacs-orgmode@gnu.org; Sun, 05 Aug 2012 21:30:01 -0400 Received: by bkcjc3 with SMTP id jc3so863218bkc.0 for ; Sun, 05 Aug 2012 18:30:00 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: brian powell Cc: emacs-orgmode@gnu.org --000e0ce0d25ef007c504c68ed00b Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks Brian, but that does not help me adjust the line spacing or height of a line. I use emacs24 for organising, programming in Python, PHP and for writing fiction. Visual line mode is perfect except for the minor irritation of my having to put in that extra linefeed to clearly visually separate paragraphs. Being able to turn visual mode off is handy too - each paragraph ends up on one line - its effectively folding for fiction ;) - very handy when scanning a 10k+ word story. The 'enhancement' I'm after is being able to make the explicit newline take up more screen height than the implicit newline used in visual-line-mode so that there is no need to put in two explicit newlines to separate paragraphs clearly. I think this would be universally appreciated. I guess I could possibly dig into the code and rebind the line-spacing within the visual-line-mode relevant scope but it would take me an age to work out how to do that. Cheers, Paul On 5 August 2012 01:53, brian powell wrote: > * http://www.emacswiki.org/emacs/VisualLineMode --very intereting... > > ** This may explain why you found no help thru google: > > "Visual line mode is a new mode in Emacs 23 that is on by default." > > * "The following code convinces visual-line-mode to wrap at a given colum= n > by expanding the right margin of the buffer=92s window. It=92s worked pre= tty > well for me, although it depends on being the only one that fiddles with > the margins. --JamesWright > > (defvar visual-wrap-column nil) > (defun set-visual-wrap-column (new-wrap-column &optional buffer) > .... > etc. > > ** To use the original behavior put the following in your .emacs: > > (setq line-move-visual nil) > > > > On Sat, Aug 4, 2012 at 8:06 AM, Paul Whipp wrote: > >> I can adjust the line-spacing variable but I'm looking for a way to >> separate paragraphs when writing large amounts of text in org-mode. >> Sticking in an extra carriage return works and has become my habit but i= t >> is annoying when the text is copy/pasted or exported to certain formats >> (such as libreoffice). >> >> I'd like to be able to set the line-spacing such that there is a nice >> visible vertical gap where I've actually hit the carriage return to crea= te >> a new paragraph and a smaller vertical spacing where visual line mode ha= s >> emulated a carriage return for readability. This would probably help in = my >> elisp or python code too because it would make it easy to distinguish >> wrapped and new lines. >> >> I've tried google but I can't see any way to do this. Can anyone suggest >> where I should look for a solution? >> >> Regards, >> Paul Whipp >> >> Office: 07 3103 2894 >> Mobile: 0410 545 357 >> >> Do more business with your website! >> >> Joomla, Python, PHP and MySQL web application developer >> >> >> >> >> > --000e0ce0d25ef007c504c68ed00b Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Thanks Brian, but that does not help me adjust the line spacing or hei= ght of a line.

I use emacs24 for organising, programmin= g in Python, PHP and for writing fiction. Visual line mode is perfect excep= t for the minor irritation of my having to put in that extra linefeed to cl= early visually separate paragraphs.

Being able to turn visual mode off is handy too - each parag= raph ends up on one line - its effectively folding for fiction ;) - very ha= ndy when scanning a 10k+ word story.

The 'enhancement'= ; I'm after is being able to make the explicit newline take up more scr= een height than the implicit newline used in visual-line-mode so that there= is no need to put in two explicit newlines to separate paragraphs clearly.= I think this would be universally appreciated.

I guess I could possibly dig into the code and rebind t= he line-spacing within the visual-line-mode relevant scope but it would tak= e me an age to work out how to do that.

Cheers,
Paul


On 5 Augu= st 2012 01:53, brian powell <briangpowellms@gmail.com> wrote:
* http://www.emacswiki.org/emacs/VisualLine= Mode --very intereting...

** This may explain why you found no help thru google:=A0

"Visual line mode is a new mode in Emacs 23 that is on by defaul= t."

* "The following code convinces visual-line-mode to wrap at a= given column by expanding the right margin of the buffer=92s window. It=92= s worked pretty well for me, although it depends on being the only one that= fiddles with the margins. --JamesWright

=A0 =A0 (defvar visual-wrap-column nil)
=A0 = =A0 (defun set-visual-wrap-column (new-wrap-column &optional buffer)
....
etc.

** To use the ori= ginal behavior put the following in your .emacs:

=A0 =A0 (setq line-move-visual nil)



On Sat, Aug 4, 2012 at 8:06 AM, Paul Whipp <paul.whipp@gmail.com= > wrote:
I can adjust the line-spacing variable but I= 'm looking for a way to separate paragraphs when writing large amounts = of text in org-mode. Sticking in an extra carriage return works and has bec= ome my habit but it is annoying when the text is copy/pasted or exported to= certain formats (such as libreoffice).

I'd like to be able to set the line-spacing such that th= ere is a nice visible vertical gap where I've actually hit the carriage= return to create a new paragraph and a smaller vertical spacing where visu= al line mode has emulated a carriage return for readability. This would pro= bably help in my elisp or python code too because it would make it easy to = distinguish wrapped and new lines.

I've tried google but I can't see any way to do= this. Can anyone suggest where I should look for a solution?


--000e0ce0d25ef007c504c68ed00b--