From d69d16ec10ef22f11eeee74cf7617bc6abfac81f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sun, 29 Jan 2017 23:03:00 +0100 Subject: emacs: improved dired mode support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.org | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'emacs/init.org') diff --git a/emacs/init.org b/emacs/init.org index c261250..36b22ab 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -473,8 +473,10 @@ Then, for keeping up with my projects I use the Projectile + Helm combination. (helm-projectile-on)) #+END_SRC -Finally, I've added a couple of bindings in evil mode. First of all, I want -@@html:C-p@@ to use the proper function for finding files. +I use @@html:C-p@@ as the binding for listing relevant files. This +binding works either by using =helm-projectile= or the regular =helm-find= +function. As a final touch, this binding also works for listing channels in ERC +buffers. #+BEGIN_SRC elisp (defun erc-helm-buffer-list () @@ -686,6 +688,17 @@ whenever I use it, I want basic evil movement. (kbd "w") 'evil-forward-word-begin)) #+END_SRC +That being said, I also extend =dired= with some handy tweaks. + +#+BEGIN_SRC elisp +(setq directory-free-space-args "-Pkh" + dired-dwim-target t + dired-omit-mode nil + dired-recursive-copies 'always + dired-recursive-deletes 'always + delete-old-versions t) +#+END_SRC + And now instruct dired mode how to attach files when using mu4e. This is taken from the [[https://www.djcbsoftware.nl/code/mu/mu4e/Dired.html#Dired][mu4e documentation]], and it's available by typing @@html:C-c RET C-a@@. -- cgit v1.2.3