From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: mimick vim's :set paste Date: Fri, 27 Jun 2008 07:24:20 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87lk0r1p57.fsf@kobe.laptop> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214541716 31147 80.91.229.12 (27 Jun 2008 04:41:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Jun 2008 04:41:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 27 06:41:59 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KC5mZ-0000jh-9r for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jun 2008 06:41:59 +0200 Original-Received: from localhost ([127.0.0.1]:43920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KC5lj-0004uf-DI for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jun 2008 00:41:07 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:AXEQvhih7kmAF9Tf1CwqoI6mhig= Original-Lines: 19 Original-NNTP-Posting-Host: 77.49.148.149 Original-X-Trace: news.sunsite.dk DXC=9P17A0dagL^MjWbH?lJH1Tkj\jCAL64`8WGR; i^>MDgZ4[T Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:159749 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55103 On Thu, 26 Jun 2008 23:44:09 +0200, "Lennart Borgman (gmail)" 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.