From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: CUA mode, turn off Shift+Curvor Move to Select Date: Sat, 30 Aug 2008 14:34:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: <51a05da4-537d-4ad5-a023-2c138b4e0969@a8g2000prf.googlegroups.com> References: <2d6948d6-f1d5-4b89-bd2a-cd8886e8f7a2@t1g2000pra.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1220132635 22092 80.91.229.12 (30 Aug 2008 21:43:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2008 21:43:55 +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 Aug 30 23:44:48 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 1KZYEa-0005qU-Ss for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2008 23:43:53 +0200 Original-Received: from localhost ([127.0.0.1]:51746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZYDc-0003TY-78 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Aug 2008 17:42:52 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a8g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1220132100 2729 127.0.0.1 (30 Aug 2008 21:35:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 30 Aug 2008 21:35:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a8g2000prf.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:161787 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:57129 Archived-At: 2008-08-30 Thanks Lennart. Now I'm trying to make the following keybindings: (add-hook 'cua-mode-hook (lambda () (define-key cua-global-keymap (kbd "M-C") 'scroll-down) (define-key cua-global-keymap (kbd "M-T") 'scroll-up) ) ) ; Dvorak keyboard So that, M-C will run scroll-down, instead of cua-scroll-down. However, it doesn't work. Apparently, the cua-mode uses some mechanism that simply alias scroll- down to cua-scroll-down. in cua-base.el, there's this line: ;; scrolling (define-key cua-global-keymap [remap scroll-up] 'cua-scroll-up) (define-key cua-global-keymap [remap scroll-down] 'cua-scroll-down) What's the remap in the vector there? How to do what i want? Thanks Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Aug 30, 7:00 am, "Lennart Borgman (gmail)" wrote: > Xahwrote: > > in CUA mode, is there a way to make it so that when Shift key is down > > and cursor is move, it doesn't select? > > That would not really be CUA mode ... > > > That is, i want it to do > > > (transient-mark-mode t) > > (delete-selection-mode t) > > > and Ctrl+ZXCV for undo cut copy paste, but i don't want the Shift > > +CursorMove to Select behavior. (because that behavior is incompatible > > with my ergonomic keybinding. I need to suggest to users a way to turn > > this this off) > > There is a property on the command symbol that controls this. > > > Alternatively, is there a way that only turn on the Ctrl+ZXCV > > shortcuts without all the other features? > > > Thanks in advance again. > > > Xah > > =E2=88=91http://xahlee.org/ > > > =E2=98=84