summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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