From a437299440e17f476ed4be43bff29dc08769731f Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 21 Sep 2024 14:07:29 +0200 Subject: [PATCH] Add subword-mode toggle to python-mode menu * lisp/progmodes/python.el (python-mode-map): Add subword-mode toggle to menu. (cherry picked from commit 29a760711731ce49965079e72d76b26ef3b7bcb4) --- lisp/progmodes/python.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 76c9cbb77a7..cd8befdb1d5 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -420,6 +420,11 @@ To customize the Python interpreter for interactive use, modify :help "Sort the import statements at the top of this buffer"] ["Fix imports" python-fix-imports :help "Add missing imports and remove unused ones from the current buffer"] + "-----" + ("Toggle..." + ["Subword Mode" subword-mode + :style toggle :selected subword-mode + :help "Toggle subword movement and editing mode"]) )) map) "Keymap for `python-mode'.") -- 2.39.2