From 82c2b0de6a2c15fbe4369739b8cd72020fdc3399 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Thu, 17 May 2012 00:03:19 -0300 Subject: [PATCH] Set local variable `mode-require-final-newline' to t --- lisp/progmodes/python.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 00a6b804e72..92cdd35d90a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2354,6 +2354,8 @@ if that value is non-nil." ,(lambda (arg) (python-end-of-defun-function)) nil)) + (set (make-local-variable 'mode-require-final-newline) t) + (set (make-local-variable 'outline-regexp) (python-rx (* space) block-start)) (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n") -- 2.39.5