unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: mimick vim's :set paste
Date: Fri, 27 Jun 2008 07:24:20 +0300	[thread overview]
Message-ID: <87lk0r1p57.fsf@kobe.laptop> (raw)
In-Reply-To: mailman.13878.1214516667.18990.help-gnu-emacs@gnu.org

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.



      parent reply	other threads:[~2008-06-27  4:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lk0r1p57.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).