タグ

repeatに関するpcrdのブックマーク (2)

  • Easily repeat Emacs functions: a repeat post

    pcrd
    pcrd 2023/09/06
    “Repeat-maps can be listed by #'describe-repeat-maps. I don't think this is especially useful. Repeat-maps automatically message the user the keys that are bound in that map, although they do not tell the user what the keys do. Transient maps don't provide any guidance to the user.”
  • emacs 28.1で導入された repeat-modeに関する調査 - Shohei Yoshida's Diary

    はじめに 最近まともに追っていなかったから存在さえ知らなかったのだけど、markdown-modeの issueでそういう機能があってどういうものかと使い方を調べてみた. 機能 特定のコマンドのグループを連続でお手軽に実行するための仕組み. 例えば移動系コマンドで次に移動が C-c n , 前に移動が C-c p みたいな場合毎回 C-c n, C-c pと叩くの面倒くさい。一方的に進む、戻るのであれば数値プレフィックスがあるが Vimのように数だけ押せばいいとわけじゃないし、進んだり戻ったりと繰り返したい場合などは使えない。そこで使えるのが repeat-mode。repeat-modeを使って初回実行だけは C-c nだが以降は n, pでそれぞれ移動するということが実現できる. myuheさんが作られた smartrep.elに近い. sheephead.homelinux.org

    emacs 28.1で導入された repeat-modeに関する調査 - Shohei Yoshida's Diary
  • 1