From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Cut and open commands? Date: Sat, 23 Feb 2008 18:22:36 +0100 Message-ID: <87zltrfuzn.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203787398 2695 80.91.229.12 (23 Feb 2008 17:23:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 17:23:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 18:23:43 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 1JSy69-00068b-LP for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 18:23:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSy5d-0007md-FN for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 12:23:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSy5N-0007mB-AS for help-gnu-emacs@gnu.org; Sat, 23 Feb 2008 12:22:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSy5L-0007ly-Rv for help-gnu-emacs@gnu.org; Sat, 23 Feb 2008 12:22:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSy5L-0007lv-NK for help-gnu-emacs@gnu.org; Sat, 23 Feb 2008 12:22:51 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JSy5L-00010r-7Y for help-gnu-emacs@gnu.org; Sat, 23 Feb 2008 12:22:51 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JSy5E-0000wV-Jr for help-gnu-emacs@gnu.org; Sat, 23 Feb 2008 17:22:44 +0000 Original-Received: from dslb-084-063-058-102.pools.arcor-ip.net ([84.63.58.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2008 17:22:44 +0000 Original-Received: from tassilo by dslb-084-063-058-102.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Feb 2008 17:22:44 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-058-102.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:LMrN6vJom+GVW8NuS+OhB6fNdrw= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:51802 Archived-At: saneman writes: > I would like to redefine cut and open to: C-x and C-o regardless of > the built in definitions. Don't cripple your emacs yourself, use cua-mode. ,----[ C-h f cua-mode RET ] | cua-mode is an interactive autoloaded Lisp function in `cua-base'. | | It is bound to , | . | | (cua-mode &optional ARG) | | Toggle CUA key-binding mode. | When enabled, using shifted movement keys will activate the | region (and highlight the region using `transient-mark-mode'), | and typed text replaces the active selection. | | Also when enabled, you can use C-z, C-x, C-c, and C-v to undo, | cut, copy, and paste in addition to the normal Emacs bindings. | The C-x and C-c keys only do cut and copy when the region is | active, so in most cases, they do not conflict with the normal | function of these prefix keys. | | If you really need to perform a command which starts with one of | the prefix keys even when the region is active, you have three | options: | - press the prefix key twice very quickly (within 0.2 seconds), | - press the prefix key and the following key within 0.2 seconds, or | - use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c. | | You can customize `cua-enable-cua-keys' to completely disable the | CUA bindings, or `cua-prefix-override-inhibit-delay' to change | the prefix fallback behavior. | | CUA mode manages Transient Mark mode internally. Trying to disable | Transient Mark mode while CUA mode is enabled does not work; if you | only want to highlight the region when it is selected using a | shifted movement key, set `cua-highlight-region-shift-only'. `---- Bye, Tassilo -- People sometimes ask me if it is a sin in the Church of Emacs to use vi. Using a free version of vi is not a sin; it is a penance. So happy hacking. (Richard M. Stallman)