diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2017-01-29 23:03:00 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2017-01-29 23:05:29 +0100 |
| commit | d69d16ec10ef22f11eeee74cf7617bc6abfac81f (patch) | |
| tree | d091b846af0d83e3c93b45cafd57aa6c7794b2c4 /emacs/init.org | |
| parent | feeee31948437a2a53e171c0cb18b6354b3d2c59 (diff) | |
| download | dotfiles-d69d16ec10ef22f11eeee74cf7617bc6abfac81f.tar.gz dotfiles-d69d16ec10ef22f11eeee74cf7617bc6abfac81f.zip | |
emacs: improved dired mode support
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
| -rw-r--r-- | emacs/init.org | 17 |
1 files changed, 15 insertions, 2 deletions
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:<kbd>C-p</kbd>@@ to use the proper function for finding files. +I use @@html:<kbd>C-p</kbd>@@ 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:<kbd>C-c RET C-a</kbd>@@. |
