]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
kill buffer after magit-file-delete, too.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 25 Nov 2015 14:44:18 +0000 (15:44 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 25 Nov 2015 14:44:18 +0000 (15:44 +0100)
bba.org

diff --git a/bba.org b/bba.org
index 11d9721e73f7acd7000e54981652ee7476590738..672c07e28b0bc4efd8024a418c274556870de14c 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -2034,7 +2034,12 @@ function to convert groups of spaces to hard tabs.
   (define-key global-map "\C-c\C-w" 'fixup-whitespace)
 
   (define-key global-map "\M-g\M-d" 'magit-diff-unstaged)
-  (define-key global-map "\M-g\S-d" 'magit-file-delete)
+  (define-key global-map "\M-g\S-d" '(lambda()
+                                     (interactive)
+                                     (call-interactively 'magit-file-delete)
+                                     (kill-buffer)
+                                     )
+    )
   (define-key global-map "\M-g\M-b" 'magit-branch-manager)
   (define-key global-map "\M-gb" 'magit-blame-popup)
   (define-key global-map "\C-cm" 'magit-status)