Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cua-mode]

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

0
votes
1answer
18 views

Force C-c to cua-copy-region

I have CUA mode enabled, but sometimes when I hit C-c, emacs simply does not copy anything because it starts to think Iam typing some C-C something command. I tried: (global-set-key (kbd "C-c") 'cua-...
1
vote
0answers
23 views

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 ...
1
vote
2answers
42 views

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-...
0
votes
0answers
7 views

cua-set-rectangle-mark: Not paste (yank) in all lines

Windows 10, Emacs 25.1 I use "CUA" mode very often.It's really help me. But when I try to yank (paste) in cua mode it's paste only in one line. Here example: I want to insert prefix in all lines. ...
0
votes
1answer
167 views

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-...
3
votes
1answer
133 views

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: <F3> C-S-right ...
2
votes
1answer
174 views

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, ...
3
votes
1answer
232 views

Priority of keymapping commands

In another question (IDO rebind C-j to C-<RET>), Seraph asked about defining the <C-return> key for ido-mode. It turned out that the key was already bound in cua-global-keymap, which ...
1
vote
2answers
140 views

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-...
0
votes
2answers
87 views

CUA mode is implictly cutting and copying from region

I'm confused about some CUA mode implicit behaviour that I got after upgrading Emacs, specifically: Marking a region automatically copies it, without having to type C-c Deleting a region ...
14
votes
1answer
2k views

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 ...
3
votes
1answer
311 views

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 ...
0
votes
1answer
60 views

Enable cua-mode in term or ansi-term mode

While working with term or ansi-term in term-line mode, I am not able to use cua-mode bindings. Is this possible?
1
vote
1answer
37 views

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 ...
1
vote
2answers
337 views

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 ...
1
vote
2answers
881 views

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-...
8
votes
2answers
2k views

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?