Emacs - I search backward (and forward) to grab the word faster

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 7

  • @Tim_Sviridov
    @Tim_Sviridov Год назад +1

    Incremental search pushes a mark as soon as you start searching, so once you're done in your new location, you can hit C-u C-space to get back to where you started. No need for another function.

  • @asmeurer
    @asmeurer Год назад

    Also checkout the avy package, which takes this idea and makes it even more efficient.
    And note that this also works when the mark is active, so you can use it to select a specific portion of text.

  • @FrankJonen
    @FrankJonen Год назад

    The two spaces after the period: Is that an org-mode thing? What does it do?

    • @ChristopherMaiorana
      @ChristopherMaiorana  Год назад +1

      That's the default for Emacs to recognize your sentence as a sentence. So you can use sentence commands properly, like being able to jump forward or backward by sentence, kill sentence, transpose, etc. But this setting can be changed.

    • @FrankJonen
      @FrankJonen Год назад

      @@ChristopherMaiorana now I have to look into my settings. Thanks. I’ve never heard of sentence based navigation. That’ll save me so much time.

    • @FrankJonen
      @FrankJonen Год назад

      Just realised the `M-e` / `M-a` actually are the sentence commands you meant. Brainfart earlier.

  • @redguy333
    @redguy333 Год назад

    This is why I hate videos like this. Three minutes to tell ppl that "C-r" is a thing, instead of one paragraph blog post. Or a tweet.