{"id":71,"date":"2011-08-10T13:12:00","date_gmt":"2011-08-10T13:12:00","guid":{"rendered":"https:\/\/www.root42.de\/blog\/?p=71"},"modified":"2011-08-10T13:12:00","modified_gmt":"2011-08-10T13:12:00","slug":"emacs-other-window-backwards","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=71","title":{"rendered":"Emacs other-window backwards"},"content":{"rendered":"<p>I am currently writing a lot of text in <a href=\"http:\/\/www.gnu.org\/software\/emacs\/\">Emacs<\/a>, and I need to work on multiple files in parallel. So I use the <a href=\"http:\/\/www.gnu.org\/software\/libtool\/manual\/emacs\/Split-Window.html\">split window<\/a> functionality a lot. With <span style=\"font-family: 'Courier New', Courier, monospace;\">C-x o<\/span> you can switch to the next split window. However, it would be nice to go backward as well. The solution is simple, and is given on <a href=\"http:\/\/stackoverflow.com\/questions\/143072\/in-emacs-what-is-the-opposite-function-of-other-window-c-x-o\">Stackoverflow<\/a> and some other blogs:<\/p>\n<pre>(defun prev-window ()\n<br \/>  (interactive)\n<br \/>  (other-window -1))\n<br \/>(global-set-key (kbd \"C-x p\") 'prev-window)\n<br \/><\/pre>\n<p>Just put this in you init.el, and you can cycle backwards using <span style=\"font-family: 'Courier New', Courier, monospace;\">C-x p<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am currently writing a lot of text in Emacs, and I need to work on multiple files in parallel. So I use the split window functionality a lot. With C-x o you can switch to the next split window. However, it would be nice to go backward as well. The solution is simple, and &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=71\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Emacs other-window backwards&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,6,8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}