{"id":11498,"date":"2023-07-16T11:41:53","date_gmt":"2023-07-16T15:41:53","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=11498"},"modified":"2023-07-16T11:41:53","modified_gmt":"2023-07-16T15:41:53","slug":"zamansky-learning-elisp-3","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=11498","title":{"rendered":"Zamansky: Learning Elisp 3"},"content":{"rendered":"<p>Mike Zamansky has the <a href=\"https:\/\/cestlaz.github.io\/post\/learning-elisp-3\/\">third video in his Learning Elisp series<\/a> up. As promised, this one is about writing functions. As Zamansky points out, Elisp functions are pretty much the same as function in other languages except for the lack of a return statement and, of course, the syntax.<\/p>\n<p>There are a couple of interesting aspects to Elisp functions. The first is the Doc String. Lots of languages have something similar but in Emacs the Doc String is automatically imported into the Help system so a user\u2019s own functions are documented just like the built-in functions.<\/p>\n<p>The second aspect is the <code>interactive<\/code> declaration. Including it makes the function \u201cinteractive\u201d, which means that you can call it from the keyboard with <kbd>Meta<\/kbd>+<kbd>x<\/kbd> or by assigning it a key binding. My goal for writing Elisp is to write an interactive function where I remember to add the <code>interactive<\/code> declaration <i>before<\/i> I try to run it from the command line.<\/p>\n<p>The video covers just the very basics of writing functions. Zamansky is planning on getting into some of the deeper aspect in later videos. This video is 12 minutes, 36 seconds long so you\u2019ll probably have to schedule some time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mike Zamansky has the third video in his Learning Elisp series up. As promised, this one is about writing functions. As Zamansky points out, Elisp functions are pretty much the same as function in other languages except for the lack &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=11498\">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-11498","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\/11498","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=11498"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11498\/revisions"}],"predecessor-version":[{"id":11499,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11498\/revisions\/11499"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}