{"id":7434,"date":"2018-08-25T12:11:37","date_gmt":"2018-08-25T16:11:37","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=7434"},"modified":"2018-08-25T12:11:37","modified_gmt":"2018-08-25T16:11:37","slug":"actionable-links-in-emacs-buffers","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=7434","title":{"rendered":"Actionable Links in Emacs Buffers"},"content":{"rendered":"<p>\nAs most of you know, I do almost all my writing in Org mode so I&rsquo;m used to being able to follow a URL by typing return on it or with <kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>o<\/kbd>. I use this all the time and, occasionally, when I&rsquo;m in some other type of buffer I&rsquo;ll try to follow the link and it won&rsquo;t work. I end up copying the link and pasting it into my browser. That&rsquo;s a real cache miss for me.\n<\/p>\n<p>\nI just had another of those &ldquo;how did I not know this&rdquo; moments when I saw \u00c1lvaro Ram\u00edrez&rsquo;s post about <a href=\"http:\/\/xenodium.com\/#actionable-urls-in-emacs-buffers\">enabling the exact functionality I wanted<\/a>. It&rsquo;s been there all along. I&rsquo;m not sure when it was integrated into Emacs core but the creation date on the source file is 1995.\n<\/p>\n<p>\nDon&rsquo;t let Ram\u00edrez&rsquo;s use of <code>use-package<\/code> mislead you. It&rsquo;s not a third-party package; it&rsquo;s built into Emacs. On the other hand, Ram\u00edrez&rsquo;s <code>use-package<\/code> invocation is useful because it shows you how to set it up. For most buffer types, you&rsquo;ll want to use <code>goto-address-mode<\/code> but for code you&rsquo;ll probably want <code>goto-address-prog-mode<\/code> which behaves the same as <code>goto-address-mode<\/code> but only for strings and comments. If you use Org buffers much of the time, you may want to bind <kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>o<\/kbd> instead of or in addition to <kbd>Return<\/kbd>.\n<\/p>\n<p>\nThis is a great find for me. I don&rsquo;t need it that often but it was really annoying when I did and I didn&rsquo;t know the easy way of doing it. Thanks to Ram\u00edrez for the tip. Perhaps you&rsquo;ll find it useful too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As most of you know, I do almost all my writing in Org mode so I&rsquo;m used to being able to follow a URL by typing return on it or with Ctrl+c Ctrl+o. I use this all the time and, &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=7434\">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-7434","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\/7434","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=7434"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7434\/revisions"}],"predecessor-version":[{"id":7435,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7434\/revisions\/7435"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}