{"id":6436,"date":"2017-07-18T11:03:00","date_gmt":"2017-07-18T15:03:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=6436"},"modified":"2017-07-18T11:03:04","modified_gmt":"2017-07-18T15:03:04","slug":"changing-the-recentering-order","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=6436","title":{"rendered":"Changing the Recentering Order"},"content":{"rendered":"<p> I was trolling through some of abo-abo&rsquo;s old posts over at <a href=\"http:\/\/oremacs.com\">(or emacs<\/a> and came upon this gem concerning <a href=\"http:\/\/oremacs.com\/2015\/03\/28\/recenter\/\">the order of positions for recenter-top-bottom<\/a>. I use this command all the time; it&rsquo;s really handy when a search result leaves the target at the bottom of the screen. A simple <kbd>Ctrl<\/kbd>+<kbd>l<\/kbd> and the line is repositioned to the middle of the screen. Another <kbd>Ctrl<\/kbd>+<kbd>l<\/kbd> and it&rsquo;s positioned at the top. A third invocation returns it to the bottom. <\/p>\n<p> As abo-abo says, this is a bit counter intuitive and not as handy as you&rsquo;d like it to be. In the common case of searching for a function, you&rsquo;d like to position it at the top so as much of the function as possible is visible. Of course you can do that by pressing <kbd>Ctrl<\/kbd>+<kbd>l<\/kbd> twice but it would make more sense for it to start at the top. <\/p>\n<p> Being Emacs, the behavior is, of course, completely configurable. You can set the order to be anything you like. If, as abo-abo says, you believe in gravity and want as much of the result showing as possible, you can set the order to be top-middle-bottom with <\/p>\n<div class=\"org-src-container\">\n<pre class=\"src src-emacs-lisp\">(<span style=\"color: #a020f0;\">setq<\/span> recenter-positions '(top middle bottom))\n<\/pre>\n<\/div>\n<p> I like that better but others may disagree. The beauty of Emacs, as always, is that you can have it your way. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trolling through some of abo-abo&rsquo;s old posts over at (or emacs and came upon this gem concerning the order of positions for recenter-top-bottom. I use this command all the time; it&rsquo;s really handy when a search result leaves &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=6436\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-6436","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\/6436","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=6436"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6436\/revisions"}],"predecessor-version":[{"id":6437,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6436\/revisions\/6437"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}