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.
This commit is contained in:
parent
11e3e0cadd
commit
fd1a1b0780
1 changed files with 0 additions and 17 deletions
|
@ -233,23 +233,6 @@
|
||||||
;; `python-imenu-format-parent-item-jump-label-function' variables for
|
;; `python-imenu-format-parent-item-jump-label-function' variables for
|
||||||
;; changing the way labels are formatted in the tree version.
|
;; changing the way labels are formatted in the tree version.
|
||||||
|
|
||||||
;; If you used python-mode.el you may miss auto-indentation when
|
|
||||||
;; inserting newlines. To achieve the same behavior you have two
|
|
||||||
;; options:
|
|
||||||
|
|
||||||
;; 1) Enable the minor-mode `electric-indent-mode' (enabled by
|
|
||||||
;; default) and use RET. If this mode is disabled use
|
|
||||||
;; `newline-and-indent', bound to C-j.
|
|
||||||
|
|
||||||
;; 2) Add the following hook in your .emacs:
|
|
||||||
|
|
||||||
;; (add-hook 'python-mode-hook
|
|
||||||
;; (lambda ()
|
|
||||||
;; (define-key python-mode-map "\C-m" 'newline-and-indent)))
|
|
||||||
|
|
||||||
;; I'd recommend the first one since you'll get the same behavior for
|
|
||||||
;; all modes out-of-the-box.
|
|
||||||
|
|
||||||
;; Flymake: A Flymake backend, using the pyflakes program by default,
|
;; Flymake: A Flymake backend, using the pyflakes program by default,
|
||||||
;; is provided. You can also use flake8 or pylint by customizing
|
;; is provided. You can also use flake8 or pylint by customizing
|
||||||
;; `python-flymake-command'.
|
;; `python-flymake-command'.
|
||||||
|
|
Loading…
Add table
Reference in a new issue