mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
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
@ -233,23 +233,6 @@
|
||||
;; `python-imenu-format-parent-item-jump-label-function' variables for
|
||||
;; 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,
|
||||
;; is provided. You can also use flake8 or pylint by customizing
|
||||
;; `python-flymake-command'.
|
||||
|
Loading…
Reference in New Issue
Block a user