From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: copying and pasting in emacs Date: Sun, 05 Apr 2009 16:43:11 -0500 Message-ID: <9o6dnReEU6DgikTUnZ2dnUVZ_sPinZ2d@sysmatrix.net> References: <640dcabc-d78f-4006-901f-2689297ea79a@w9g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238967646 17205 80.91.229.12 (5 Apr 2009 21:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Apr 2009 21:40:46 +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 23:42:04 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 1Lqa6M-0006Vg-5T for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 23:42:02 +0200 Original-Received: from localhost ([127.0.0.1]:49183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqa4y-0007gc-1J for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 17:40:36 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 05 Apr 2009 15:41:33 -0500 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 50 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.132.4 Original-X-Trace: sv3-BOZpa8c3Pf0bbLw/PMOOO6BWxeb3ebpsoVSR1ozFmynrj9Nj0s2ILAmTyaRxn81lSdKLc8QsTY4z3l9!6bcqaLZe9aSv/qeXMUwK77X3NKnmykIBvM+EDR8XU2YHY7oh4pPXcQ88BD84LpYL4oA8TB15Xl4P!ZmayHGlqYy4ERa22CBxND3MrUKIy Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 3011 Original-Xref: news.stanford.edu gnu.emacs.help:168224 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:63505 Archived-At: Peter Finn wrote: > 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 > > And if you want the basic pc selection keys but want to leave Emacs undisturbed for everything else then do this: Menu>Customize Emacs>Specific Group.... pc-select Then turn on 1, 2, and 5 (Override Scroll Error, Pc Selection Keys Only, and Pc Selection Mode) Save for future sessions This will save the settings in your .emacs. This way the setup will encourage or at least allow you to learn C-space, C-w, M-w, C-y, M-y, and Emacs standard cursor movement keys. Ed