{"id":242,"date":"2012-05-01T20:23:38","date_gmt":"2012-05-02T01:23:38","guid":{"rendered":"http:\/\/wordpress.morningside.edu\/meyersh\/?p=242"},"modified":"2013-03-13T11:57:43","modified_gmt":"2013-03-13T16:57:43","slug":"how-to-attach-to-a-remote-emacs-session","status":"publish","type":"post","link":"https:\/\/wordpress.morningside.edu\/meyersh\/2012\/05\/01\/how-to-attach-to-a-remote-emacs-session\/","title":{"rendered":"How to attach to a remote emacs session"},"content":{"rendered":"<p>I was away from my workstation which was running an emacs with several open files (some potentially unsaved!) when I wanted to access some of those files.<\/p>\n<p>My emacs is always configured to run the server process. This means I can start an emacs process and edit any file with `emacsclient $file`. Instead of a new emacs process, the file is opened by my original emacs.<\/p>\n<p>I was curious if I could use emacsclient to connect remotely to a running frame: I can. By ssh&#8217;ing in I can run `emacsclient -nw` (no-window) and get a new frame of that emacs client in the terminal which has all my buffers open and ready to go.<\/p>\n<p>Alternatively, if you&#8217;re forwarding X connections, using `ssh -X` for instance, `emacsclient -c` will fire up a new emacs frame on your local machine which shares the same emacs process.<\/p>\n<p>More information: <a title=\"http:\/\/www.emacswiki.org\/emacs\/EmacsClient\" href=\"http:\/\/www.emacswiki.org\/emacs\/EmacsClient\">http:\/\/www.emacswiki.org\/emacs\/EmacsClient<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was away from my workstation which was running an emacs with several open files (some potentially unsaved!) when I wanted to access some of those files. My emacs is always configured to run the server process. This means I can start an emacs process and edit any file with `emacsclient $file`. Instead of a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wordpress.morningside.edu\/meyersh\/2012\/05\/01\/how-to-attach-to-a-remote-emacs-session\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to attach to a remote emacs session&#8221;<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":332,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[188],"tags":[],"class_list":["post-242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-unix-linux","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/wordpress.morningside.edu\/meyersh\/files\/2012\/05\/its-cover.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p16T7G-3U","_links":{"self":[{"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/posts\/242\/revisions\/272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/media\/332"}],"wp:attachment":[{"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.morningside.edu\/meyersh\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}