* Is there a way to selectively change the line spacing for visual line mode?
@ 2012-08-04 12:06 Paul Whipp
2012-08-04 15:53 ` brian powell
2012-08-05 21:36 ` Jambunathan K
0 siblings, 2 replies; 4+ messages in thread
From: Paul Whipp @ 2012-08-04 12:06 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]
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 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 there 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 visual line mode has
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! <http://www.paulwhippconsulting.com.au>
Joomla, Python, PHP and MySQL web application
developer<http://www.paulwhippconsulting.com.au/>
[-- Attachment #2: Type: text/html, Size: 1260 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to selectively change the line spacing for visual line mode?
2012-08-04 12:06 Is there a way to selectively change the line spacing for visual line mode? Paul Whipp
@ 2012-08-04 15:53 ` brian powell
2012-08-06 1:29 ` Paul Whipp
2012-08-05 21:36 ` Jambunathan K
1 sibling, 1 reply; 4+ messages in thread
From: brian powell @ 2012-08-04 15:53 UTC (permalink / raw
To: Paul Whipp; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]
* 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 column
by expanding the right margin of the buffer’s window. It’s worked pretty
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 <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 become 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 there 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 visual line mode has
> 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!<http://www.paulwhippconsulting.com.au>
>
> Joomla, Python, PHP and MySQL web application developer<http://www.paulwhippconsulting.com.au/>
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2523 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to selectively change the line spacing for visual line mode?
2012-08-04 12:06 Is there a way to selectively change the line spacing for visual line mode? Paul Whipp
2012-08-04 15:53 ` brian powell
@ 2012-08-05 21:36 ` Jambunathan K
1 sibling, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2012-08-05 21:36 UTC (permalink / raw
To: Paul Whipp; +Cc: emacs-orgmode
Paul Whipp <paul.whipp@gmail.com> writes:
> Sticking in an extra carriage return works and has become my habit but
> it is annoying when the text is copy/pasted or exported to certain
> formats (such as libreoffice).
You can create LibreOffice documents using the OpenDocument text
exporter. Type C-c C-e O in the org buffer. If you export this way,
the *.odt file will not have any newline issues.
I am not sure why you are copy, pasting when there is a better
alternative.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is there a way to selectively change the line spacing for visual line mode?
2012-08-04 15:53 ` brian powell
@ 2012-08-06 1:29 ` Paul Whipp
0 siblings, 0 replies; 4+ messages in thread
From: Paul Whipp @ 2012-08-06 1:29 UTC (permalink / raw
To: brian powell; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 3012 bytes --]
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 <briangpowellms@gmail.com> 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 column
> by expanding the right margin of the buffer’s window. It’s worked pretty
> 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 <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 become 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 there 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 visual line mode has
>> 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!<http://www.paulwhippconsulting.com.au>
>>
>> Joomla, Python, PHP and MySQL web application developer<http://www.paulwhippconsulting.com.au/>
>>
>>
>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 4029 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-06 1:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-04 12:06 Is there a way to selectively change the line spacing for visual line mode? Paul Whipp
2012-08-04 15:53 ` brian powell
2012-08-06 1:29 ` Paul Whipp
2012-08-05 21:36 ` Jambunathan K
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.