ziglang / zig-mode

Zig mode for Emacs
GNU General Public License v3.0
157 stars 54 forks source link

zig-mode changes my font size #61

Closed eldritchconundrum closed 1 year ago

eldritchconundrum commented 2 years ago

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

joachimschmidt557 commented 2 years ago

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.