Questions tagged [cua-mode]

Cua-mode allows one to use ‘C-v’, ‘C-c’, and ‘C-x’ to paste, copy, and cut the region.

From EmacsWiki: Cua Mode:

Cua-mode allows one to use ‘C-v’, ‘C-c’, and ‘C-x’ to paste, copy, and cut the region. Since this conflicts with very important keybindings in Emacs, these CUA bindings are only active when the mark is active. The package does a whole lot more, too: ‘C-z’ to undo, Shift-movement to select, and it includes support for rectangular regions (‘C-RET’ and arrow keys instead of using the C-x r …’ keys) and registers (instead of using the register commands), and it uses’ and `S-’ to indent and outdent the region. As you can see, it is very powerful!

18 questions
24
votes
1 answer

What am I giving up by activating CUA mode?

CUA mode is very close to the workflow I am used to outside Emacs, so I am tempted to activate it. But I have learned that Emacs may have useful gems hidden in its ways, and CUA mode seems something that was attached later on. I know the benefits of…
gsl
  • 1,742
  • 17
  • 34
9
votes
2 answers

Use standard keybindings for copy, paste, cut, etc. as in other software?

I want to use the same basic keybindings for copy (C-c), paste (C-v), cut (C-x), etc. that are supported in some other software. How can I do that?
3
votes
2 answers

Cua-mode and keyboard macros

I have just started using emacs, so I decided to use cua-mode. I got this weird problem when I'm using macros and copy/cut (C-c/ C-x). let's assume this simple macro for example: C-S-right C-c C-v When I execute it I'm getting this…
Or Dicker
  • 51
  • 2
3
votes
1 answer

Priority of keymapping commands

In another question (IDO rebind C-j to C-), Seraph asked about defining the key for ido-mode. It turned out that the key was already bound in cua-global-keymap, which overrode its binding in ido-common-completion-map. Steps to…
Realraptor
  • 1,253
  • 6
  • 17
3
votes
1 answer

Integrate cua-mode with evil-insert-state

I'm starting to think that using the regular C-x C-c C-v keys for kill-ring operations make sense, as they're used that way in every other program I use regularly. (And I'm starting to develop conflicting muscle memories.) However, I use evil-mode.…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
2
votes
0 answers

unbind ALL C-x and C-c shortcuts in org-mode with CUA-mode

For a special purpose application of emacs with org-mode I want to dramatically simplify the shortcuts. I'm already quite satisfied with my config based on CUA mode. The one thing that bothers me still is that I C-c and C-x initiates the original…
2
votes
1 answer

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

I use column editing in cua-mode (cua-selection-mode) a lot. A main issue I have is that the most frequently used keybinding, C-RET (Control + Return), doesn't work in most terminals (Ubuntu 16.04, Emacs 24.5), or with emacs -nw. I did some…
tinlyx
  • 1,276
  • 1
  • 12
  • 27
2
votes
2 answers

Ctrl-C keybinding is having no effect

I am trying to remap C-c, C-x, C-v (windows editing shortcuts for copy, cut, paste) using these 3 lines of elisp code: (global-set-key (kbd "C-c") 'kill-ring-save) (global-set-key (kbd "C-x") 'kill-region) (global-set-key (kbd "C-v")…
Madhavan
  • 1,957
  • 12
  • 28
1
vote
1 answer

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

Is there a simple way to get command-i, command-b, and command-u to operate in emacs org-mode on Mac in exactly the way that they operate in a typical word processor on Mac (for example, Microsoft Word for Mac)? [Edit (Mar 14 '21)]: To be more…
user32038
  • 31
  • 2
1
vote
2 answers

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

I'm running cua-mode, and I'm trying to override the cua binding for C-c so that I can insert a function somefunc before passing the baton to the original cua binding which is cua-prefix-override-handler. However, I find I can't override the…
Craig Hicks
  • 304
  • 2
  • 9
1
vote
1 answer

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

When shift-select-mode is on (Emacs' default), C-S-up in text mode selects the previous paragraph. This does not work under Org-Mode, where C-S-up gets translated into C-up, which is mapped to org-backward-paragraph and just moves up, but does not…
scaramouche
  • 1,772
  • 10
  • 24
1
vote
2 answers

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

I'd like to know how to indent multiple lines while Python is my major mode. The link below answers my question for the most part: https://stackoverflow.com/questions/2585091/emacs-bulk-indent-for-python However, is there a way to accomplish this…
WickedJargon
  • 418
  • 2
  • 14
1
vote
1 answer

Cutting selection with CUA-mode bindings after searching

I want to cut/copy some code with this method: setting a mark with C-SPC, searching with C-s, then cutting/copying the selection. Check the following image: I can copy selected code with M-w or cut (kill) it with S-Del. But since I am using…
nephewtom
  • 2,219
  • 17
  • 29
1
vote
2 answers

Kill rectangle with cua-mode support

There are many nice column editing features in CUA mode. After hitting Ctrl+RETURN, binded to cua-set-rectangle-mark, you get some help in the minibuffer: But I can't find the shortcut to cut/kill rectangle text, e.g.: I want to get rid of all…
nephewtom
  • 2,219
  • 17
  • 29
0
votes
1 answer

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

I'm very new to emacs, and can't seem to get cua-mode to work by default. I'm using emacs 26.3 with spacemacs 0.300 on Kubuntu 20.04.1 I have set (cua-mode t) in my .spacemacs, and cua-mode shows up as active when I check the M-x menu, but the cua…
1
2