From 66e45a6de1f8d1494b56a9538badbb3ec65e51f6 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 15 Mar 2023 12:23:04 +0100 Subject: magit: Remove whitespace toggle. --- init.org | 22 +--------------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3