{"id":1378,"date":"2012-11-12T06:06:47","date_gmt":"2012-11-12T11:06:47","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=1378"},"modified":"2012-11-12T06:07:49","modified_gmt":"2012-11-12T11:07:49","slug":"advanced-dired-tips","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=1378","title":{"rendered":"Advanced Dired Tips"},"content":{"rendered":"<p>Xah Lee has updated his <a href=\"http:\/\/ergoemacs.org\/emacs\/emacs_dired_tips.html\">Emacs Advanced dired Tips<\/a> page. I thought I knew all this stuff but Lee has some tips I wasn&#8217;t aware of. For example, you can configure what dired does when you try to copy or delete a directory. You can have it ask once for the top directory, ask for every directory and subdirectory, or not allow it at all.<\/p>\n<p>At the bottom of the page he has a pointer to his <a href=\"http:\/\/ergoemacs.org\/emacs\/emacs_diredplus_mode.html\">Using Emacs&#8217;s \u201cDired+\u201d (DiredPlus) Mode<\/a> page. Almost every time I blog about a dired feature someone will comment that the feature doesn&#8217;t work for them. That&#8217;s because I use dired+. I&#8217;ve been using dired+ for so long I always forget that I&#8217;m running it instead of plain dired. <em>Everyone<\/em> should be using it. There&#8217;s no reason not to and it&#8217;s easy to install with ELPA. There&#8217;s virtually no configuration either. Here&#8217;s what I have in my <code>init.el<\/code>:<\/p>\n<pre class=\"src src-emacs-lisp\">(<span style=\"color: #a020f0;\">require<\/span> '<span style=\"color: #008b8b;\">dired+<\/span>)\r\n(put 'dired-find-alternate-file 'disabled nil)  <span style=\"color: #b22222;\">;<\/span><span style=\"color: #b22222;\">enable `a' command<\/span><\/pre>\n<p>The <code>put<\/code> command enables the \u3010<kbd>a<\/kbd>\u3011 command that replaces the current dired buffer rather than opening an additional buffer when you move to another directory. If you don&#8217;t include that, Emacs will ask you if you want to enable it when you try to use it so it&#8217;s not necessary to include it.<\/p>\n<p>Take a look at Lee&#8217;s Advanced dired page and for goodness sake install dired+ if you haven&#8217;t already.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xah Lee has updated his Emacs Advanced dired Tips page. I thought I knew all this stuff but Lee has some tips I wasn&#8217;t aware of. For example, you can configure what dired does when you try to copy or &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=1378\">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-1378","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\/1378","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=1378"}],"version-history":[{"count":2,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":1385,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1378\/revisions\/1385"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}