{"id":893,"date":"2012-06-30T10:41:26","date_gmt":"2012-06-30T14:41:26","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=893"},"modified":"2012-06-30T10:42:15","modified_gmt":"2012-06-30T14:42:15","slug":"a-new-emacs-trick","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=893","title":{"rendered":"A New Emacs Trick"},"content":{"rendered":"<p>Well, new to me anyway. Xah Lee and the folks over at the <a href=\"https:\/\/plus.google.com\/113859563190964307534\/posts\">ErgoEmacs Google+ Group<\/a> discovered a <a href=\"https:\/\/plus.google.com\/113859563190964307534\/posts\/dbU6BLxAmEj\">nifty Emacs command<\/a> (apparently from a <a href=\"http:\/\/twitter.com\/sachac\/status\/210554209970561025\">Sacha Chua tweet<\/a>) that does something I&#8217;ve often wanted to do. Suppose you want to kill some text, move to another part of the buffer and kill some more text and then be able to yank both kills at once. It turns out that there&#8217;s a nice way of doing that:<\/p>\n<ul>\n<li>Kill the first batch of text<\/li>\n<li>Move to the next text to kill<\/li>\n<li>Type \u3010<kbd>Ctrl<\/kbd>+<kbd>Meta<\/kbd>+<kbd>w<\/kbd>\u3011<\/li>\n<li>Kill the second batch of text<\/li>\n<\/ul>\n<p>Now when you yank with \u3010<kbd>Ctrl<\/kbd>+<kbd>y<\/kbd>\u3011 you get both kills together.<\/p>\n<p>The \u3010<kbd>Ctrl<\/kbd>+<kbd>Meta<\/kbd>+<kbd>w<\/kbd>\u3011 runs the <code>append-next-kill<\/code> command that causes the kills to be appended. As I say, this is something I often want to do, particularly when I&#8217;m moving code around. Thanks to Sacha, Xah, and the ErgoEmacs folks for letting us know about this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, new to me anyway. Xah Lee and the folks over at the ErgoEmacs Google+ Group discovered a nifty Emacs command (apparently from a Sacha Chua tweet) that does something I&#8217;ve often wanted to do. Suppose you want to kill &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=893\">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-893","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\/893","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=893"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":894,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions\/894"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}