{"id":347,"date":"2017-06-02T00:12:11","date_gmt":"2017-06-02T00:12:11","guid":{"rendered":"http:\/\/emacslisp.com\/?p=347"},"modified":"2017-06-06T00:14:27","modified_gmt":"2017-06-06T00:14:27","slug":"spacemacs-working-with-previous-emacs-config","status":"publish","type":"post","link":"http:\/\/emacslisp.com\/?p=347","title":{"rendered":"spacemacs &#8211; working with previous emacs config"},"content":{"rendered":"<p>1. fork from branch https:\/\/github.com\/syl20bnr\/spacemacs.git to you own github account<\/p>\n<p>   the reason why we should fork is to commit code changes for spacemacs in future.<\/p>\n<p>   move ~\/.emacs to ~\/.emacs1 as backup file<\/p>\n<p>2. open ~\/.emacs.d\/init.el, at the end of buffer, add code to load .emacs file<\/p>\n<p>   in my computer, I put all .emacs configure into another file named .emacs_mac<\/p>\n<p>   ;; move these code into the end of init.el<br \/>\n   (if (>= emacs-major-version 25)<br \/>\n        (load-file \\&#8221;~\/emacs\/.emacs_mac_25\\&#8221;)<br \/>\n      (load-file \\&#8221;~\/emacs\/.emacs_mac\\&#8221;))<\/p>\n<p>3. &#8220;M-x toggle-debug-on-error&#8221; is helpful command when error occurs. since spacemacs may connect to network and some server are not ready. <\/p>\n<p>4. disable &#8216;M-x&#8217; &#8216;C-x C-f&#8217; because windows size changes too often.<\/p>\n<p>in following picture you could see three windows, especially last one, when M-x key is press, it will become very large, later on it will be one line only.<br \/>\n<a href=\"http:\/\/emacslisp.com\/wp-content\/uploads\/2017\/06\/spacemacs.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/emacslisp.com\/wp-content\/uploads\/2017\/06\/spacemacs.jpg\" alt=\"spacemacs\" width=\"581\" height=\"534\" class=\"alignnone size-full wp-image-352\" \/><\/a><\/p>\n<p>here are steps for disabling them.<br \/>\n<1>open   ~\/.emacs.d\/layers\/+completion\/helm\/packages.el<br \/>\n<2>in function &#8220;helm\/init-helm&#8221; search &#8216;global-set-key&#8217; statement and comment out.<\/p>\n<p><3>after comment out everything , add following code into ~\/.emacs.d\/init.el<\/p>\n<pre lang=\"lisp\" line=\"1\" escaped=\"true\"> \r\n(ido-mode 0)\r\n(helm-mode 0)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. fork from branch https:\/\/github.com\/syl20bnr\/spacemacs.git to you own github account the reason why we should fork is to commit code changes for spacemacs in future. move ~\/.emacs to ~\/.emacs1 as backup file 2. open ~\/.emacs.d\/init.el, at the end of buffer, add code to load .emacs file in my computer, I put all .emacs configure into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-emacs"],"_links":{"self":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347"}],"version-history":[{"count":6,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":354,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions\/354"}],"wp:attachment":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}