{"id":11448,"date":"2023-06-25T13:43:55","date_gmt":"2023-06-25T17:43:55","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=11448"},"modified":"2023-06-25T15:39:40","modified_gmt":"2023-06-25T19:39:40","slug":"phone-calls-and-maps-from-emacs-in-macos","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=11448","title":{"rendered":"Phone Calls and Maps from Emacs in macOS"},"content":{"rendered":"<p>Charles Choi has an interesting post on <a href=\"http:\/\/yummymelon.com\/devnull\/using-emacs-to-make-phone-calls-and-lookup-map-places-on-macos.html\">how to make phone calls and bring up a map of a given location from Emacs in the macOS environment<\/a>. What\u2019s interesting is not that you can do it\u2014it\u2019s Emacs, of course you can do it\u2014but that it\u2019s so easy.<\/p>\n<p>In native macOS apps, you can put your cursor on a phone number and click on it to dial the number (assuming, of course, you have an iPhone and have configured it to use your Mac as a proxy). Similarly, you can put your cursor on a location and click on it to bring the location up in Apple maps.<\/p>\n<p>The interface to both services is the same: you just present a specially formatted URL to the browser and the system takes care of the rest of it. Making a call is the more complicated functionality but only because you have to canonicalize the phone number. That\u2019s done with a (not so simple) regex but the rest is easy.<\/p>\n<p>Take a look at Choi\u2019s post for the details including the code. If you\u2019re a macOS user, often make calls or bring up map from your Mac, and like to stay in Emacs as much as you can, you should take a look at the post.<\/p>\n<p>Of course, the code is for macOS but I\u2019d be surprised if there weren\u2019t similar services in the other OSes.<\/p>\n<p><b>Update<\/b> <span class=\"timestamp-wrapper\"><span class=\"timestamp\">[2023-06-25 Sun 15:38]<\/span><\/span>: Added link to Choi\u2019s post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Charles Choi has an interesting post on how to make phone calls and bring up a map of a given location from Emacs in the macOS environment. What\u2019s interesting is not that you can do it\u2014it\u2019s Emacs, of course you &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=11448\">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-11448","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\/11448","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=11448"}],"version-history":[{"count":2,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11448\/revisions"}],"predecessor-version":[{"id":11450,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11448\/revisions\/11450"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}