{"id":4988,"date":"2016-02-16T09:50:00","date_gmt":"2016-02-16T14:50:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=4988"},"modified":"2016-02-16T09:50:45","modified_gmt":"2016-02-16T14:50:45","slug":"open-the-current-buffers-file-in-another-application","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=4988","title":{"rendered":"Open the Current Buffer&#8217;s File in Another Application"},"content":{"rendered":"<p> Ustun Ozgur has posted a <a href=\"https:\/\/www.youtube.com\/watch?v=Lv7cB8ISnCg&amp;feature=youtu.be\">video<\/a> in which he demonstrates his package <a href=\"https:\/\/github.com\/ustun\/emacs-friends\">emacs-friends<\/a>. The idea is that you provide the package with an association list mapping (your name for) an application to it&#8217;s executable and the code automatically generates functions you can call to open the file associated with the current buffer in that application. <\/p>\n<p> Watch the video to see how it works. Oddly, a couple of the examples he uses are opening the file in Vim and Sublime. I&#8217;m not sure why an Emacser would want to do that but he finds it useful. In any event, don&#8217;t be put off by that. Look at the other examples and the association list he&#8217;s using to get an idea of what&#8217;s possible. <\/p>\n<p> Xah Lee has a <a href=\"http:\/\/ergoemacs.org\/emacs\/elisp_run_current_file.html\">bit of code<\/a> that does something similar. If you&#8217;re in the market for this sort of thing, take a look at both packages to see which best fits your needs. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ustun Ozgur has posted a video in which he demonstrates his package emacs-friends. The idea is that you provide the package with an association list mapping (your name for) an application to it&#8217;s executable and the code automatically generates functions &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=4988\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-4988","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\/4988","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=4988"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4988\/revisions"}],"predecessor-version":[{"id":4989,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4988\/revisions\/4989"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}