diff --git a/dotfiles/emacs.d/load.d/ansi-color-mode.el b/dotfiles/emacs.d/load.d/ansi-color-mode.el index 3d16ae70..69d8cd72 100644 --- a/dotfiles/emacs.d/load.d/ansi-color-mode.el +++ b/dotfiles/emacs.d/load.d/ansi-color-mode.el @@ -7,7 +7,8 @@ "Fundamental mode that understands ansi colors." (require 'ansi-color) (ansi-color-apply-on-region (point-min) (point-max)) - (save-buffer) + (when buffer-file-name + (save-buffer)) (read-only-mode)) (add-to-list 'auto-mode-alist '("\\.ansi_color\\'" . fundamental-ansi-mode))