This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-28
Channels
- # announcements (34)
- # babashka (46)
- # beginners (187)
- # biff (2)
- # calva (5)
- # cider (10)
- # clj-http (2)
- # clj-kondo (14)
- # cljs-dev (31)
- # clojars (3)
- # clojure (43)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (4)
- # clr (1)
- # cursive (1)
- # datalevin (50)
- # datomic (1)
- # emacs (12)
- # etaoin (6)
- # fulcro (7)
- # helix (21)
- # hyperfiddle (20)
- # kaocha (5)
- # lsp (14)
- # malli (10)
- # off-topic (58)
- # polylith (7)
- # portal (5)
- # reagent (39)
- # reitit (10)
- # releases (11)
- # reveal (14)
- # scittle (7)
- # shadow-cljs (58)
- # sql (8)
- # tools-deps (7)
Anyone know how to ignore whitespace in the magit status buffer? Preferable as a default?
D -w
as for making that change permanent. I don't think you should, but if you insist, here's how you make some options permanent:
(dolist (v '((magit-pull "--rebase")
(magit-show-refs "--sort=-committerdate")
(magit-fetch "--prune")))
(add-to-list 'transient-values v))
in your case, I think you can try (add-to-list 'transient-values '(magit-diff "--ignore-all-space"))
thanks ag. This is definitely a compromise solution, but it helps a ton to at least have it on the board even if i end up not using it. How on earth did you figure out how to do that?
i just realized i can refresh the buffer and all the status diffs will now ignore whitespace, which is good enough.
i'm not sure why it's not the default to not auto refresh after you choose an option like ignore whitespace.
> How on earth did you figure out how to do that? I don't remember, I think I got frustrated with how https://magit.vc/manual/transient/Saving-Values.html worked (I think I needed it to persist between configs). Had to check how it works.
If you look at my first snippet, one of the things it does, it forces branches to be always sorted. Otherwise, you'd have to use the universal argument whenever you call magit-show-refs
and set the option manually.
There are some interesting Diff rendering options in the Magit Status buffer, under the D
menu
I don't understand why whenever I press enter with auto-indent I have massive tab spam like spacing 5 tabs out, sometimes it keeps going every time I press enter. Happens in multiple languages
Sometimes command details are sent to the *messages*
buffer when pressing keys.
Or consider using a package like command-log or keycast which shows the commands being run when pressing keys
Or try M-x describe-key
and press the key to find out what command its running