13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Emacsで矩形編集(cua-mode)

Last updated at Posted at 2014-02-19

cua-mode設定

.emacs
(cua-mode t)
(setq cua-enable-cua-keys nil) ; デフォルトキーバインドを無効化
(define-key global-map (kbd "C-x SPC") 'cua-set-rectangle-mark)

矩形選択中のキー操作

keybind 説明
M-p 矩形の幅を固定
M-b 空白文字で埋める。 open-rectangle と同等
M-s 文字列で置き換える。 string-rectangle と同等
M-f 1種類の文字で埋める。 string-rectangle で1文字指定したときと同等
M-i 矩形領域内の数字をインクリメントする
M-n 矩形領域を連番で埋める。フォーマット指定可
13
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?