{"id":8986,"date":"2020-07-06T12:41:29","date_gmt":"2020-07-06T16:41:29","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=8986"},"modified":"2020-07-06T12:41:29","modified_gmt":"2020-07-06T16:41:29","slug":"some-register-tips","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=8986","title":{"rendered":"Some Register Tips"},"content":{"rendered":"<p>Tory Anderson has a handy post that reminds us about the <a href=\"https:\/\/tech.toryanderson.com\/2020\/07\/03\/emacs-tip-registers\/\">utility of registers in Emacs<\/a>. It\u2019s easy to forget about them but they\u2019re incredibly useful and flexible. Anderson considers three of the major use-cases:<\/p>\n<ol class=\"org-ol\">\n<li>Saving text in a register.<\/li>\n<li>Saving a window configuration in a register.<\/li>\n<li>Saving the position of the point in a register.<\/li>\n<\/ol>\n<p>I learned a couple of new things from the post. It\u2019s possible to list the current registers with <kbd>Meta<\/kbd>+<kbd>x<\/kbd> <code>list-registers<\/code>. You can also get a short list with <kbd>Ctrl<\/kbd>+<kbd>x<\/kbd> <kbd>r<\/kbd> <kbd>j<\/kbd>. That\u2019s normally the way you jump to a register but if you wait a short time, Emacs will pop up a list of registers and their contents even if a register contains something you can\u2019t jump to such as a string. This list is meant to show you the available registers, much like abo-abo\u2019s Counsel functions or the corresponding Helm functions, so you\u2019ll have to quit the operation with <kbd>Ctrl<\/kbd>+<kbd>g<\/kbd> to avoid a possibly undesirable interaction with one of the registers but it\u2019s a quick and easy to see what registers are currently in use.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tory Anderson has a handy post that reminds us about the utility of registers in Emacs. It\u2019s easy to forget about them but they\u2019re incredibly useful and flexible. Anderson considers three of the major use-cases: Saving text in a register. &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=8986\">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-8986","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\/8986","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=8986"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8986\/revisions"}],"predecessor-version":[{"id":8987,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8986\/revisions\/8987"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}