Python.el: Update commentary on RET-behavior
Commentary reflect that `electric-indent-mode' in enabled by default.
This commit is contained in:
parent
6b765b8fac
commit
bb19b229f9
1 changed files with 6 additions and 4 deletions
|
@ -209,11 +209,13 @@
|
||||||
;; `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 probably will miss auto-indentation
|
;; If you used python-mode.el you may miss auto-indentation when
|
||||||
;; when inserting newlines. To achieve the same behavior you have
|
;; inserting newlines. To achieve the same behavior you have two
|
||||||
;; two options:
|
;; options:
|
||||||
|
|
||||||
;; 1) Use GNU/Emacs' standard binding for `newline-and-indent': C-j.
|
;; 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:
|
;; 2) Add the following hook in your .emacs:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue