LoginSignup
8
8

More than 5 years have passed since last update.

リージョンを複数選択して同時にリアルタイム編集出来る mark-multiple.el

Posted at

昨日のexpand-region に引き続き、これもいいです。

まずは 動画 をどうぞ。特にすごいのは20秒~30秒の辺り!

インストール

package.el に入っていたのでそっちを使いました。

M-x package-list-packagesmark-multiple にカーソルを合わせてEnter

設定

基本はデフォルト設定のままですが、rename-sgml-tagをhtml-modeで使えるようにしています。

init.el
;; mark-multiple
(require 'inline-string-rectangle)
(global-set-key (kbd "C-x r t") 'inline-string-rectangle)

(require 'mark-more-like-this)
(global-set-key (kbd "C-<") 'mark-previous-like-this)
(global-set-key (kbd "C->") 'mark-next-like-this)
;; (global-set-key (kbd "C-M-m") 'mark-more-like-this) ; like the other two, but takes an argument (negative is previous)
(global-set-key (kbd "C-*") 'mark-all-like-this)

;; (add-hook 'sgml-mode-hook
;;           (lambda ()
;;             (require 'rename-sgml-tag)
;;             (define-key sgml-mode-map (kbd "C-c C-r") 'rename-sgml-tag)))
(add-hook 'html-mode-hook
          (lambda ()
            (require 'rename-sgml-tag)
            (define-key html-mode-map (kbd "C-c C-r") 'rename-sgml-tag)))

リンク

8
8
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
8
8