LoginSignup
21
16

More than 5 years have passed since last update.

Emacsでテキストをソートする

Posted at

Emacs でテキストをソートするときは今まで C-u M-| sort でソートしてましたが
関数が存在することを今更ながら知りました。

ソートする範囲を選択して M-x sort-lines を実行します。
逆順にソートするときは C-u M-x sort-lines。

他にもフィールド単位, 段落単位, ページ単位などソートする関数がいろいろ定義されています。
詳細は Emacs の info の Sorting を参照。

21
16
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
21
16