![]() Yes, you can have Emacs use both at the same time. select-enable-clipboard - default t set this to t if you want the Emacs commands C-w and C-y to use the clipboard selection.select-enable-primary - default nil set this to t if you want the Emacs commands C-w and C-y to use the primary selection.If you dislike this behavior, there are two options you can customize: With this out of the way, starting with Emacs 24.1, GNU Emacs should already do the right thing here. Pasting using the yank/paste functions will insert the CLIPBOARD. Pasting using the middle mouse button will insert the PRIMARY selection. Using the copy function will place the selected text into the CLIPBOARD. ![]() ![]() Every time you select a piece of text with the mouse, the selected text is set as the PRIMARY selection. Important for this discussion is the understanding that X generally distinguishes between two types of selection, the PRIMARY and the CLIPBOARD. This is relevant, as Emacs supports the various aspects of this mess. WholeLineOrRegion – C-w and M-w act on the current line when TransientMarkMode is not activeĬopy and paste support on the X window system (as used by Unix and Linux) has historically been a mess.DeleteSelectionMode – DEL deletes the region just typing replaces it.CuaLightMode – something between PcSelectionMode and CuaMode.CuaMode – use C-x, C-c and C-v to copy and paste.PcSelectionMode – the Windows and Motif flavour with C-, C-, and S.If you do not care for the DefaultKillingAndYanking key bindings, then consider these alternatives: Emacs has its own terminology and keys for these concepts: Common Name
0 Comments
Leave a Reply. |