diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el index 694eea1285c..c61c64532a3 100644 --- a/lisp/progmodes/icon.el +++ b/lisp/progmodes/icon.el @@ -177,7 +177,7 @@ with no args, if that value is non-nil." (make-local-variable 'indent-line-function) (setq indent-line-function 'icon-indent-line) (make-local-variable 'require-final-newline) - (setq require-final-newline t) + (setq require-final-newline mode-require-final-newline) (make-local-variable 'comment-start) (setq comment-start "# ") (make-local-variable 'comment-end)