From: bigfaceworm <bigfaceworm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: cua-mode and cua-replace-region
Date: Thu, 13 Nov 2008 11:39:00 -0800 (PST) [thread overview]
Message-ID: <c3aab91b-0deb-4427-b041-587f39013e23@d36g2000prf.googlegroups.com> (raw)
In-Reply-To: 76597a2a-ef6a-4953-9b4e-24ca0ce60ad2@r37g2000prr.googlegroups.com
On Nov 13, 11:20 am, bigfaceworm <bigfacew...@gmail.com> wrote:
> basically, I want the cua-rectangle editing, and none of the rest.
Modifying cua--select-keymaps to always set cua--ena-region-keymap to
nil seemed to have the effect I wanted.
Any better ways?
(defun cua--select-keymaps ()
;; Setup conditions for selecting the proper keymaps in cua--keymap-
alist.
(setq cua--ena-region-keymap
nil) ;; THIS IS THE CHANGE, was (and mark-active (not
deactivate-mark))
(setq cua--ena-prefix-override-keymap
(and cua--ena-region-keymap
cua-enable-cua-keys
(not cua-inhibit-cua-keys)
(or (eq cua-enable-cua-keys t)
(not cua--explicit-region-start))
(not executing-kbd-macro)
(not cua--prefix-override-timer)))
(setq cua--ena-prefix-repeat-keymap
(and cua--ena-region-keymap
(or (timerp cua--prefix-override-timer)
(eq cua--prefix-override-timer 'shift))))
(setq cua--ena-cua-keys-keymap
(and cua-enable-cua-keys
(not cua-inhibit-cua-keys)
(or (eq cua-enable-cua-keys t)
cua--last-region-shifted)))
(setq cua--ena-global-mark-keymap
(and cua--global-mark-active
(not (window-minibuffer-p)))))
TJ
prev parent reply other threads:[~2008-11-13 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-13 19:20 cua-mode and cua-replace-region bigfaceworm
2008-11-13 19:39 ` bigfaceworm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3aab91b-0deb-4427-b041-587f39013e23@d36g2000prf.googlegroups.com \
--to=bigfaceworm@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).