From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Finn Newsgroups: gmane.emacs.help Subject: Re: copying and pasting in emacs Date: Sun, 05 Apr 2009 12:53:56 -0500 Message-ID: References: <640dcabc-d78f-4006-901f-2689297ea79a@w9g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1238955199 5661 80.91.229.12 (5 Apr 2009 18:13:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Apr 2009 18:13:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 05 20:14:38 2009 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 1LqWrc-0000nz-TH for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 20:14:37 +0200 Original-Received: from localhost ([127.0.0.1]:46215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqWqE-0006Qd-89 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 14:13:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqWXm-0006RS-7q for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 13:54:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqWXf-0006Pv-A8 for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 13:54:05 -0400 Original-Received: from [199.232.76.173] (port=54659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqWXf-0006Ps-5b for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 13:53:59 -0400 Original-Received: from qw-out-1920.google.com ([74.125.92.148]:8709) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqWXe-0005af-PK for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 13:53:58 -0400 Original-Received: by qw-out-1920.google.com with SMTP id 5so1315071qwf.24 for ; Sun, 05 Apr 2009 10:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:message-id:from :to:newsgroups:subject:in-reply-to:references:user-agent :mime-version:content-type; bh=n+qtyj+vlnrl/tBPislyPRA/yUMxgF+kVP9ohXz6Ttg=; b=KKjYcOEw8OR6CaHnGMe0t0ZQqm+UmkHqfSlAU8qLQpF1Z7v7xbnuWmHglWRVqcyH96 z4/OiPqymWyBizBRzxqRfYK0ghDNr/Fw9VTjeVdOAwKLaCIOpFIjxYKzVGLzFwkcfPzw AYW2viJxYDkaB/JSPPwXZ35rmmVX8ZH+7bx3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:message-id:from:to:newsgroups:subject:in-reply-to :references:user-agent:mime-version:content-type; b=fllnBG8kTcdxRY7NFuxb9/Yw0bmsNT2899qv8/F5feUs8FldUQwJCylZpERkJWK0dT gc19IIHyFmkKcdH6ENMRIZg4eSBlg/8qEPhTIJOTN51hl84YjpSz4D3VdI4TgAJ0AW4m cpPpX0r7g2K2SPHoiPT0xaCClHHL7Uz3mn/wk= Original-Received: by 10.224.10.211 with SMTP id q19mr2934265qaq.384.1238954037860; Sun, 05 Apr 2009 10:53:57 -0700 (PDT) Original-Received: from Athena.local.localhost (68-190-87-219.dhcp.mdsn.wi.charter.com [68.190.87.219]) by mx.google.com with ESMTPS id 6sm3690621qwd.49.2009.04.05.10.53.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Apr 2009 10:53:57 -0700 (PDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <640dcabc-d78f-4006-901f-2689297ea79a@w9g2000yqa.googlegroups.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.0.91 (i386-apple-darwin9.6.0) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63503 Archived-At: At Sun, 5 Apr 2009 07:17:02 -0700 (PDT), luca pamparana wrote: > > Hello, > > I am unable to figure out how to select and copy text as you would do > in another editors: > > For example, one thing I normally need to do is select from the > current position upto the next few words. Normally, I just press shift > + ctrl and the left or right arrow key and the editor would highlight > one word at a time. I have so far been unable to figure out how to > highlight text in emacs using the keyboard. > > Anyone knows how I can do it esp. highlighting one word, line etc. at > a time. > > Many thanks, > > Luca If you want behavior similar to other editors you might want to try turning on CUA mode (M-x cua-mode ) which will give you exactly the selection behavior you want (using in combination with ); as well as key-bindings for the copying, cutting, and pasting of text similar to other editors you may be familiar with. CUA mode can be enabled permanently through Emacs' customization facility by typing: M-x customize-variable cua-mode and setting is value to ON, and saving your changes. Peter