diff options
| author | Eli Zaretskii | 2024-10-05 07:41:22 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-05 07:41:22 -0400 |
| commit | 7949452350ca69a7d3e56c1e16fa35f81d8fdf50 (patch) | |
| tree | d971236313eec19419cf5ed9590974be08db96cf /lisp/progmodes/python.el | |
| parent | b2ebba1d3cdcda9197ddce9ee14cd6184eca7131 (diff) | |
| parent | b68b9f291cc52f6120858534ff450fa7f6381d0b (diff) | |
| download | emacs-7949452350ca69a7d3e56c1e16fa35f81d8fdf50.tar.gz emacs-7949452350ca69a7d3e56c1e16fa35f81d8fdf50.zip | |
Merge from origin/emacs-30
b68b9f291cc ; * lisp/progmodes/csharp-mode.el (treesit-query-compile)...
688201ef18d ; * lisp/window.el (switch-to-prev-buffer-skip-regexp): D...
ba44fc9a447 Restore comment/string check for 'electric-layout-mode'
5a462948e13 Update Arni Magnusson's email address
6b1271b169a Fix python-ts-mode-map docstring
aaaafddc945 Normalize "Commentary" section in eudc.el
d656be9794d Expand email abbrevs in X-Debbugs-Cc header.
e9dcf0c57dd Fix 'list-tags' when invoked from a non-file buffer
51ef05f684c count-windows: Fix reference to walk-windows
5eaf0c784bf * lisp/info-look.el (mapc): Add use-package manual's index.
705a5a1a9e6 ; * ChangeLog.4: Fix attribution of one change.
bf26ff0dc8d Update csharp-ts-mode font-lock (bug#73369)
4c866abab96 ; * doc/lispref/variables.texi (Creating Buffer-Local): F...
d42d7d474fe ; * lisp/doc-view.el (doc-view-svg-face): Copy-edit docst...
f46f476bb8f ; * admin/MAINTAINERS: Take VC subsystem, add note about ...
d68e6d2689d ; rcirc-update-activity-string: Justify some existing beh...
e6a37869c8d Fix inconsistency in value of rcirc-activity-string
108b3179bd4 Revert "; Minor clarification in variables.texi"
44156c21407 ; Minor clarification in variables.texi
63058e1153a Tag interactive commands in 'lua-ts-mode'
84bea20eba2 ; * lisp/info-look.el: Add two more links.
96b87ad5363 Mention LSP acronym in eglot defgroup docstring
9c904e8ceae Change :group of 'eglot' defgroup to 'tools'
fd1a1b07805 Remove out-of-date documentation from python.el
11e3e0cadd4 Fix executing commands in Eshell using "env" with no loca...
c0ef8a9a1b3 Fix a typo in the calendar manual
36ff7138feb ; Fix a thinko in sieve-manage.el
7abecbcd633 ; * nt/INSTALL: Update MinGW notes URL. (Bug#73528)
# Conflicts:
# admin/MAINTAINERS
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5532d5f6ce1..812e28268c2 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'. |
| @@ -440,7 +423,7 @@ To customize the Python interpreter for interactive use, modify | |||
| 440 | :help "Toggle subword movement and editing mode"]))) | 423 | :help "Toggle subword movement and editing mode"]))) |
| 441 | 424 | ||
| 442 | (defvar python-ts-mode-map (copy-keymap python-mode-map) | 425 | (defvar python-ts-mode-map (copy-keymap python-mode-map) |
| 443 | "Keymap for `(copy-keymap python-mode-map)'.") | 426 | "Keymap for `python-ts-mode'.") |
| 444 | 427 | ||
| 445 | 428 | ||
| 446 | ;;; Python specialized rx | 429 | ;;; Python specialized rx |