최근 편집
요약: move material from OpenQuestions
추가됨:
> [new]
> My PcSelectionMode is working for emacs-22 in an XWindow console but it's not working for emacs-22 in a tty console (Ctrl Alt F2 or F3...). In a tty console, it does copy but it does not delete and does not reverse the video. I tried the both hacks below:
> (if (fboundp 'pc-selection-mode)
> (pc-selection-mode)
> (require 'pc-select))
> (custom-set-variables
> '(pc-selection-mode t nil (pc-select))
This mode changes mark behaviour to emulate Motif, MAC or MS-Windows cut and paste style. (DeleteSelectionMode and TransientMarkMode are also enabled.)
This allows you to use the `S-<left>’ and `S-<right>’ to extend or shrink the region. Ditto for `C-S-<left>’ and `C-S-<right>’ as well as lots of other combinations well known from the Windows 3.11 world. My favorite is `S-<insert>’, `C-<insert>’, and `S-<delete>’ to paste, copy, and cut the region.
Those key bindings are also available from DeleteSelectionMode and TransientMarkMode. – DrewAdams
pc-selection-mode is only defined in GnuEmacs. For XEmacs, load the pc-select file. In order to make it work for both emacsen, put the following in your ~/.emacs file:
(if (fboundp 'pc-selection-mode)
(pc-selection-mode)
(require 'pc-select))My PcSelectionMode is working for emacs-22 in an XWindow console but it’s not working for emacs-22 in a tty console (Ctrl Alt F2 or F3…). In a tty console, it does copy but it does not delete and does not reverse the video. I tried the both hacks below:
(if (fboundp 'pc-selection-mode)
(pc-selection-mode)
(require 'pc-select)) (custom-set-variables '(pc-selection-mode t nil (pc-select))