aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/org/config.org
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-07-07 00:35:59 +0100
committerdx <aryadevchavali1@gmail.com>2020-07-07 00:35:59 +0100
commit2c229849c401102152bdc51741591ced5fa325d0 (patch)
treef29d82e755ff0b69dce881043440377b1a0ad823 /Doom/.doom.d/org/config.org
parent8ecd395491951208a8b944b2ed15d2bbf2bf21b6 (diff)
downloaddotfiles-2c229849c401102152bdc51741591ced5fa325d0.tar.gz
dotfiles-2c229849c401102152bdc51741591ced5fa325d0.tar.bz2
dotfiles-2c229849c401102152bdc51741591ced5fa325d0.zip
+bindings config for dired
Diffstat (limited to 'Doom/.doom.d/org/config.org')
-rw-r--r--Doom/.doom.d/org/config.org9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org
index 132f390..5f6247e 100644
--- a/Doom/.doom.d/org/config.org
+++ b/Doom/.doom.d/org/config.org
@@ -203,10 +203,13 @@ I import the string type via `using std::string` which isn't supported in standa
:desc "Calc" ":" #'calc))
#+END_SRC
** Dired and ranger
+I like doing shell comamnds from dired, but I don't want Emacs to hang when doing them.
+So, as '!' is a common use command and "&" is the async comamnd, I'll just switcheroo the "!" and "&" for their designated commands.
#+BEGIN_SRC elisp
-(after! ranger
- (setq ranger-cleanup-eagerly t)
- (setq ranger-show-hidden t))
+(map!
+ :map dired-mode-map
+ :n "!" #'dired-do-async-shell-command
+ :n "&" #'dired-do-shell-command)
#+END_SRC
** Compilation
Add keybind to recompile (inside the buffer)