zig-mode icon indicating copy to clipboard operation
zig-mode copied to clipboard

zig-mode changes my font size

Open eldritchconundrum opened this issue 4 years ago • 1 comments

I use text-scale-increase to change my font size. But every time I save a zig file, my font size gets reset...

eldritchconundrum avatar Aug 07 '21 11:08 eldritchconundrum

Related: https://github.com/ziglang/zig-mode/issues/49

The cause of this behaviour is that our current formatting code runs revert-buffer after running zig fmt to load the new file. That means that the text scale is reset after every save.

joachimschmidt557 avatar Aug 07 '21 15:08 joachimschmidt557