Skip to main content
Share Your Experience: Take the 2024 Developer Survey
21 votes
Accepted

What am I giving up by activating CUA mode?

Here's my opinion, as I don't think there's an absolute answer. In short, what you “lose” is the added complexity to the key use. Following is more detailed explanation. Emacs C-x is prefix key for ...
Xah Lee's user avatar
  • 1,766
5 votes
Accepted

Priority of keymapping commands

It turned out that the key was already bound in cua-global-keymap, which overrode its binding in ido-common-completion-map. Indeed, this is because cua-mode uses emulation-mode-map-alists, which has ...
Basil's user avatar
  • 12.4k
3 votes

Integrate cua-mode with evil-insert-state

A little bit late to the party but I use the following: (define-key evil-insert-state-map (kbd "C-c") 'cua-copy-region) (define-key evil-insert-state-map (kbd "C-v") 'cua-paste) (define-key evil-...
Damian Chrzanowski's user avatar
3 votes
Accepted

Emacs bulk indent for Python while `cua-mode` is enabled

There are a couple of ways to do this. The documentation for cua-mode (which can be accessed with C-h f cua-mode) says you have three options: press the prefix key twice very quickly (within 0.2 ...
stevoooo's user avatar
  • 737
2 votes

Cua-mode and keyboard macros

I wrote some lisp code to fix this. I just added this to my init.el ;; fix problem of cua-mode and macro ;; fix function (defun cua-macro-fix() (kmacro-edit-macro) ;; fix the C-c C-c ...
Or Dicker's user avatar
2 votes
Accepted

rebind C-RET in cua-mode to a different key?

After testing the potential solutions I can find, this is what worked for me (Ubuntu 16.04, emacs 24.5): (setq cua-rectangle-mark-key (kbd "C-^")) (cua-selection-mode t) Basically, define the key in ...
tinlyx's user avatar
  • 1,364
2 votes

Standard Mac/Windows Keybindings for Italics, Bold, and Underline in Org-Mode

This works for me (using general), though it doesn't remove markup, so perhaps YMMV. See also this stack exchange answer: Unable to bind emphasize key in org-mode See also: org-appear for showing and ...
mclear's user avatar
  • 1,555
1 vote
Accepted

How to make shift-selection and shift-control-selection work in orgmode headers?

On org-mode headings, S-<left> and S-<right> allow to cycle through task states, while S-<up> and S-<down> allow to cycle through priorities. On org-table, org-timestamp, org-...
crocefisso's user avatar
  • 1,353
1 vote

Cua-mode commands broken at launch (when using evil), until the mode is manually toggled

So, fwiw, I belatedly discovered that I can remap the commands to accomplish the same effect, as described here, by adding the following to my init.el: (define-key evil-insert-state-map (kbd "C-c&...
emaculateidiot's user avatar
1 vote
Accepted

Add additional function to cua-mode processing for `C-c`

Does (define-key cua--cua-keys-keymap (kbd "C-c <timeout>") 'somefunc) (without wrapping somefunc) do what you want it to? Investigation When in CUA mode, the usual method of investigating ...
aplaice's user avatar
  • 2,196
1 vote

Make C-S-up handle shift selection under Org-Mode

Based on clues from lawlist's comments, reading around the area of "Key Sequence Input" in the elisp info file, and an explanation of defadvice that even I can understand, here, I added this to my ....
IPonder's user avatar
  • 11
1 vote

Emacs bulk indent for Python while `cua-mode` is enabled

Binding it in use-package worked for me: (use-package python :mode ("\\.py\\'" . python-mode) :bind (:map python-mode-map ("C->" . python-indent-shift-right) ("C-<" . ...
nephewtom's user avatar
  • 2,261
1 vote

CUA mode is implictly cutting and copying from region

I found the culprit. I had this customisation in my .emacs that I had forgotten about: (select-enable-primary t) I don't understand how this would interfere with CUA but I removed this customisation ...
alexthegreat's user avatar
1 vote

Enable cua-mode in term or ansi-term mode

I was experiencing this from some time now, and never had the time/energy to look at it. But it seems it is pretty straightforward as it is described in AnsiTermHints: ;; enable cua and transient ...
nephewtom's user avatar
  • 2,261
1 vote

Cutting selection with CUA-mode bindings after searching

It seems @Drew already answered in the comments of the question. This makes it: (define-key isearch-mode-map (kbd "C-x") nil) He deserves the merit. I just copy the solution here for better reading ...
nephewtom's user avatar
  • 2,261

Only top scored, non community-wiki answers of a minimum length are eligible