Closed DamienCassou closed 8 months ago
I'm not convinced this is easier. Copying one line and adjusting the new copy, isn't much more involved than moving to the correct place in the only line and then pasting/typing there.
magit-disable-section-inserter
can be though of as a variation of remove-hook
, which also has to be called once per hook function.
Ok for me. Feel free to close the issue.
I might come back to this at some point, but for now I am closing.
The function
magit-disable-section-inserter
is convenient in a .dir-locals.el file to disable a section per repository. When more than one section should be disabled, this function can be called several times. This commit makes disabling several sections easier by allowing more than one section as argument.