aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:03:19 -0300
committerFabián Ezequiel Gallina2012-05-17 00:03:19 -0300
commit82c2b0de6a2c15fbe4369739b8cd72020fdc3399 (patch)
treecde5c1b7564c5f8fbc083399a9361f6b4e8eeb65 /lisp
parentc61d750ea726051dce14e4427f4f7b54b4704e63 (diff)
downloademacs-82c2b0de6a2c15fbe4369739b8cd72020fdc3399.tar.gz
emacs-82c2b0de6a2c15fbe4369739b8cd72020fdc3399.zip
Set local variable `mode-require-final-newline' to t
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 2 insertions, 0 deletions
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."
2354 ,(lambda (arg) 2354 ,(lambda (arg)
2355 (python-end-of-defun-function)) nil)) 2355 (python-end-of-defun-function)) nil))
2356 2356
2357 (set (make-local-variable 'mode-require-final-newline) t)
2358
2357 (set (make-local-variable 'outline-regexp) 2359 (set (make-local-variable 'outline-regexp)
2358 (python-rx (* space) block-start)) 2360 (python-rx (* space) block-start))
2359 (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n") 2361 (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n")