3

を介して組み込みのshift-selectionを無効にすることができました(set-variable 'shift-select-mode nil)C-Retそして、私はCUAモードの-column-selectionが好きです。ただし、CUAは自動的にシフト選択を有効にします(ただし、変数を介してではないようですshift-select-mode)。

  • それで、CUAモード内でシフト選択を無効にする可能性はありますか?
  • または:CUAモードの列選択機能を排他的に使用する方法はありますか?つまり、他のCUAのものは使用しませんか?
4

3 に答える 3

0

これは解決策ではありませんが、参考までに...

ヘルプで言及されているこの変数に気づきましたcua-mode

cua-highlight-region-shift-only is a variable defined in `cua-base.el'.

*If non-nil, only highlight region if marked with S-<move>.
When this is non-nil, CUA toggles `transient-mark-mode' on when the region
is marked using shifted movement keys, and off when the mark is cleared.
But when the mark was set using M-x cua-set-mark, Transient Mark mode
is not turned on.

cua-modeこれを行います:

(setq shift-select-mode nil)
(setq transient-mark-mode (and cua-mode
               (if cua-highlight-region-shift-only
                   (not cua--explicit-region-start)
                 t))))
于 2010-12-15T23:48:30.060 に答える
0

具体的には、のシフト選択を無効にするには、オンにする前にcua-mode、initファイルに以下を追加します(例:.emacscua-mode

(setq cua-enable-cua-keys nil)
(setq cua-highlight-region-shift-only t) ;; no transient mark mode
(setq cua-toggle-set-mark nil) ;; original set-mark behavior, i.e. no transient-mark-mode

...
(cua-mode)

当初の回答https://superuser.com/a/77453/223457

于 2013-05-10T17:02:46.893 に答える
0

Cuaからの長方形(列)編集のみを有効にするには、以下を使用できます(emacs-fuから)

(setq cua-enable-cua-keys nil);; 長方形の場合のみ(cua-mode t)

于 2013-05-10T18:47:03.020 に答える