* mimick vim's :set paste
@ 2008-06-26 21:07 Thr4wn
2008-06-26 21:44 ` Lennart Borgman (gmail)
[not found] ` <mailman.13878.1214516667.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Thr4wn @ 2008-06-26 21:07 UTC (permalink / raw)
To: help-gnu-emacs
I'm trying to paste text, but with every newline, emacs indents first,
then inserts whitespace anyway. Is there any way to temporarily turn
off indentation like vim's :set paste? or a specific way to repress
auto indentation for just the pasting?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mimick vim's :set paste
2008-06-26 21:07 mimick vim's :set paste Thr4wn
@ 2008-06-26 21:44 ` Lennart Borgman (gmail)
[not found] ` <mailman.13878.1214516667.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-06-26 21:44 UTC (permalink / raw)
To: Thr4wn; +Cc: help-gnu-emacs
Thr4wn wrote:
> I'm trying to paste text, but with every newline, emacs indents first,
> then inserts whitespace anyway. Is there any way to temporarily turn
> off indentation like vim's :set paste? or a specific way to repress
> auto indentation for just the pasting?
I have never seen the behavior you tell us about. I guess you have to
tell a lot more about the major mode you are using etc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mimick vim's :set paste
[not found] ` <mailman.13878.1214516667.18990.help-gnu-emacs@gnu.org>
@ 2008-06-27 4:24 ` Giorgos Keramidas
0 siblings, 0 replies; 3+ messages in thread
From: Giorgos Keramidas @ 2008-06-27 4:24 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 26 Jun 2008 23:44:09 +0200, "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:
> Thr4wn wrote:
>> I'm trying to paste text, but with every newline, emacs indents first,
>> then inserts whitespace anyway. Is there any way to temporarily turn
>> off indentation like vim's :set paste? or a specific way to repress
>> auto indentation for just the pasting?
>
> I have never seen the behavior you tell us about. I guess you have to
> tell a lot more about the major mode you are using etc
It's major-mode independent. When `set paste' is on, vim turns off
automatic indentation and filling. It is then possible to paste long
lines and lines of pre-formatted text without triggerring any sort of
`reformatting' of the text according to the current major mode.
Having said that, I've used `M-x text-mode / paste some text / M-x
old-mode' some times to do something similar. I've also used `M-x
picture-mode / paste / C-c C-c' too.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-27 4:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26 21:07 mimick vim's :set paste Thr4wn
2008-06-26 21:44 ` Lennart Borgman (gmail)
[not found] ` <mailman.13878.1214516667.18990.help-gnu-emacs@gnu.org>
2008-06-27 4:24 ` Giorgos Keramidas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).