emacs abbrev tutorial

Sdílet
Vložit
  • čas přidán 21. 08. 2024
  • shows you how to use emacs abbrev feature. Here's the code ergoemacs.org/e...

Komentáře • 5

  • @kisaragi-hiu
    @kisaragi-hiu Před 6 lety

    I love how simple this actually is. I don't like automatically expanding snippets, but following your tutorial I just kind of set up a abbrev table file, bound expand-abbrev to my leader, (and removed expand-abbrev from evil-insert-state-exit-hook), and now everything seems work exactly how I want it to.

  • @DarrylHebbes
    @DarrylHebbes Před 6 lety +2

    You should have so many more subscribers

  • @prevailrob
    @prevailrob Před 6 lety

    Is there any advantages to using this over a package like Yasnippet?

    • @XahLee
      @XahLee  Před 6 lety +2

      i prefer abbrev. mainly because, yasnippet forces cursor movement to fields. i prefer free form. I did mention it at 7:30.

    • @vincentzhang2785
      @vincentzhang2785 Před 6 lety

      They are very similar. If you prefer free movement, you can define your snippets in yasnippet. IMO, yasnippet has better snippets management.