We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1dca3 commit fed5653Copy full SHA for fed5653
1 file changed
lisp/doom-editor.el
@@ -136,6 +136,15 @@ or file path may exist now."
136
(set-auto-mode)
137
(not (eq major-mode 'fundamental-mode)))))))
138
139
+(defadvice! doom--preserve-text-scale-for-set-auto-mode-a (fn)
140
+ "Preserve the text scale for `set-auto-mode'.
141
+When a file is saved in `fundamental-mode' the text scale should be preserved.
142
+This helps with that."
143
+ :around #'set-auto-mode
144
+ (let ((scale text-scale-mode-amount))
145
+ (funcall fn)
146
+ (text-scale-set scale)))
147
+
148
(defadvice! doom--shut-up-autosave-a (fn &rest args)
149
"If a file has autosaved data, `after-find-file' will pause for 1 second to
150
tell you about it. Very annoying. This prevents that."
0 commit comments