aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Kangas2024-09-30 20:37:27 +0200
committerStefan Kangas2024-09-30 20:38:01 +0200
commitfd1a1b07805a0d84ca3a7fe83a5f90a8fa0fd00b (patch)
treea59b9ca4189cdf8e878072ab601752a798d3f93d /lisp/progmodes/python.el
parent11e3e0cadd46ee49007477af1335ddd5365debe2 (diff)
downloademacs-fd1a1b07805a0d84ca3a7fe83a5f90a8fa0fd00b.tar.gz
emacs-fd1a1b07805a0d84ca3a7fe83a5f90a8fa0fd00b.zip
Remove out-of-date documentation from python.el
* lisp/progmodes/python.el: Remove out-of-date documentation about automatic indentation; 'electric-indent-mode' is enabled by default in Emacs 24.4 or later, so this is no longer an issue.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el17
1 files changed, 0 insertions, 17 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index a50446343a0..9d87d6cb6a5 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -233,23 +233,6 @@
233;; `python-imenu-format-parent-item-jump-label-function' variables for 233;; `python-imenu-format-parent-item-jump-label-function' variables for
234;; changing the way labels are formatted in the tree version. 234;; changing the way labels are formatted in the tree version.
235 235
236;; If you used python-mode.el you may miss auto-indentation when
237;; inserting newlines. To achieve the same behavior you have two
238;; options:
239
240;; 1) Enable the minor-mode `electric-indent-mode' (enabled by
241;; default) and use RET. If this mode is disabled use
242;; `newline-and-indent', bound to C-j.
243
244;; 2) Add the following hook in your .emacs:
245
246;; (add-hook 'python-mode-hook
247;; (lambda ()
248;; (define-key python-mode-map "\C-m" 'newline-and-indent)))
249
250;; I'd recommend the first one since you'll get the same behavior for
251;; all modes out-of-the-box.
252
253;; Flymake: A Flymake backend, using the pyflakes program by default, 236;; Flymake: A Flymake backend, using the pyflakes program by default,
254;; is provided. You can also use flake8 or pylint by customizing 237;; is provided. You can also use flake8 or pylint by customizing
255;; `python-flymake-command'. 238;; `python-flymake-command'.