うめすこんぶ

日々のプログラミングで残しておきたいメモ.何かの役に立てれば幸いです.

Emacsで長すぎるテキストに改行を入れて見やすくする

スポンサーリンク

M-q fill-paragraph

このコマンドを実行すると、長い文章に大体70文字ごとに一瞬で改行が入って、非常に見やすくなります。

コマンドを押すときのカーソルの存在する行を中心に改行がなされる模様。また、英単語も適切に区切りを入れてくれます。句読点も、文頭に現れないようにしてくれますね。

実行前

If JUSTIFY is non-nil (interactively, with prefix argument), justify as well.If `sentence-end-double-space' is non-nil, then period followed by one space does not end a sentence, so don't break a line there. The variable `fill-column' controls the width for filling.

実行後

If JUSTIFY is non-nil (interactively, with prefix argument),
justify as well.If `sentence-end-double-space' is non-nil, then period
followed by one space does not end a sentence, so don't break a line
there. The variable `fill-column' controls the width for filling.