aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el25
1 files changed, 24 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9ae95ecfc1c..5bb15c60956 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1265,7 +1265,30 @@ For NODE, OVERRIDE, START, END, and ARGS, see
1265 :type '(repeat symbol)) 1265 :type '(repeat symbol))
1266 1266
1267(defcustom python-indent-def-block-scale 2 1267(defcustom python-indent-def-block-scale 2
1268 "Multiplier applied to indentation inside multi-line def blocks." 1268 "Multiplier applied to indentation inside multi-line blocks.
1269The indentation in parens in the block header will be the current
1270indentation plus `python-indent-offset' multiplied by this
1271variable. For example, the arguments are indented as follows if
1272this variable is 1:
1273
1274 def do_something(
1275 arg1,
1276 arg2):
1277 print('hello')
1278
1279if this variable is 2 (default):
1280
1281 def do_something(
1282 arg1,
1283 arg2):
1284 print('hello')
1285
1286This variable has an effect on all blocks, not just def block.
1287This variable only works if the opening paren is not followed by
1288non-whitespace characters on the same line. Modify
1289`python-indent-block-paren-deeper' to customize the case where
1290non-whitespace characters follow the opening paren on the same
1291line."
1269 :version "26.1" 1292 :version "26.1"
1270 :type 'integer 1293 :type 'integer
1271 :safe 'natnump) 1294 :safe 'natnump)