summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-15 12:23:04 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-15 12:23:04 +0100
commit66e45a6de1f8d1494b56a9538badbb3ec65e51f6 (patch)
tree1629aa396d3703bb06d26ccae4269f40d2464da1
parentfad29ecccf0a0f59911b3fb0bb23eaab81ba52cd (diff)
magit: Remove whitespace toggle.
-rw-r--r--init.org22
1 files changed, 1 insertions, 21 deletions
diff --git a/init.org b/init.org
index 69c289f..23ecadd 100644
--- a/init.org
+++ b/init.org
@@ -680,32 +680,12 @@ TODO: here’s the rest of my shell configuration:
(kill-buffer)
(jump-to-register :magit-fullscreen))
- (defun my/magit-toggle-whitespace ()
- "Toggles git option -w"
- (interactive)
- (if (member "-w" magit-diff-arguments)
- (my/magit-dont-ignore-whitespace)
- (my/magit-ignore-whitespace)))
-
- (defun my/magit-ignore-whitespace ()
- "Adds git option -w"
- (interactive)
- (add-to-list 'magit-diff-arguments "-w")
- (magit-refresh))
-
- (defun my/magit-dont-ignore-whitespace ()
- "Removes git option -w"
- (interactive)
- (setq magit-diff-arguments (remove "-w" magit-diff-arguments))
- (magit-refresh))
-
:custom
(magit-diff-refine-hunk 'all)
:bind
(("C-c m" . magit-status)
:map magit-status-mode-map
- ("q" . my/magit-quit-session)
- ("W" . my/magit-toggle-whitespace)))
+ ("q" . my/magit-quit-session)))
#+END_SRC
* Completion