

{"id":17,"date":"2020-05-22T18:43:49","date_gmt":"2020-05-22T22:43:49","guid":{"rendered":"https:\/\/sites.temple.edu\/vahid\/?p=17"},"modified":"2020-05-22T19:14:38","modified_gmt":"2020-05-22T23:14:38","slug":"emacs-desktop","status":"publish","type":"post","link":"https:\/\/sites.temple.edu\/vahid\/2020\/05\/22\/emacs-desktop\/","title":{"rendered":"Emacs Desktop"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Emacs can save the current session. Just add the following lines to your initialization file.<\/p>\n\n\n\n<p style=\"font-size:14px\">;; remote-connection<br>(setq tramp-default-method &#8220;plink&#8221;)<br>;; for remembering the last session<br>(require &#8216;desktop)<br>;; (desktop-load-default)<br>(desktop-save-mode 1)<br>(desktop-read)<br>(setq desktop-buffers-not-to-save &#8220;^$&#8221;)<br>(setq desktop-files-not-to-save &#8220;^$&#8221;)<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-group__inner-container\"><\/div><\/div>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emacs can save the current session. Just add the following lines to your initialization file. ;; remote-connection(setq tramp-default-method &#8220;plink&#8221;);; for remembering the last session(require &#8216;desktop);;&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/sites.temple.edu\/vahid\/2020\/05\/22\/emacs-desktop\/\">Continue reading<span class=\"screen-reader-text\">Emacs Desktop<\/span><\/a><\/div>\n","protected":false},"author":18759,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[12,13],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-tools","tag-emacs-desktop","tag-save-session","entry"],"_links":{"self":[{"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/users\/18759"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":0,"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.temple.edu\/vahid\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}