{"id":11146,"date":"2023-02-13T13:19:43","date_gmt":"2023-02-13T18:19:43","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=11146"},"modified":"2023-02-13T13:19:43","modified_gmt":"2023-02-13T18:19:43","slug":"tempo-templates","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=11146","title":{"rendered":"Tempo Templates"},"content":{"rendered":"<p>Nicolas Martyanoff has a post on something I didn\u2019t know about: <a href=\"https:\/\/www.n16f.net\/blog\/templating-in-emacs-with-tempo\/\">Emacs Tempo templates<\/a>. I\u2019ve been an Emacs user for somewhere between 15 and 20 years and I\u2019d never heard of Tempp templates. On the one hand that\u2019s pretty surprising. On the other hand, we all know that learning Emacs is a lifelong journey that is never completed.<\/p>\n<p>As most of you know, I\u2019m a Yasnippet user and find it very useful even for non-programming chores so I\u2019m not in the market for another templating engine but if you\u2019re new to templating, Tempo may be worth a look. I don\u2019t have any experience with it, obviously, but based on Martyanoff\u2019s description I\u2019d judge that Yasnippet is easier to use and learn and seems more flexible too.<\/p>\n<p>Martyanoff says that one of the virtues of Tempo is that it\u2019s simple but I find it harder to use than Yasnippet so my advice to the template n00b is to use Yasnippet. Still, as always, Emacs let you have your way. Along with skeletons there are three<sup><a id=\"fnr.1\" class=\"footref\" href=\"#fn.1\" role=\"doc-backlink\">1<\/a><\/sup> template systems you can use with Emacs so there are plenty of choices.<\/p>\n<div id=\"footnotes\">\n<h2 class=\"footnotes\">Footnotes:<\/h2>\n<div id=\"text-footnotes\">\n<div class=\"footdef\"><sup><a id=\"fn.1\" class=\"footnum\" href=\"#fnr.1\" role=\"doc-backlink\">1<\/a><\/sup><\/p>\n<div class=\"footpara\" role=\"doc-footnote\">\n<p class=\"footpara\">\nUnless there\u2019s yet another Emacs templating system I don\u2019t know about.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Nicolas Martyanoff has a post on something I didn\u2019t know about: Emacs Tempo templates. I\u2019ve been an Emacs user for somewhere between 15 and 20 years and I\u2019d never heard of Tempp templates. On the one hand that\u2019s pretty surprising. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=11146\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-11146","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11146"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11146\/revisions"}],"predecessor-version":[{"id":11147,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11146\/revisions\/11147"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}