diff options
| author | Charles A. Roelli | 2018-07-19 22:06:07 +0200 |
|---|---|---|
| committer | Charles A. Roelli | 2018-07-19 22:06:07 +0200 |
| commit | 36b64e087ea332505ae9a40f90af45e678db2255 (patch) | |
| tree | 606c3102daa3d80c7d5e9957e50b9a06534b6db2 /etc | |
| parent | 5934122c1f3371a07b9f041aec693d762e9d8767 (diff) | |
| download | emacs-36b64e087ea332505ae9a40f90af45e678db2255.tar.gz emacs-36b64e087ea332505ae9a40f90af45e678db2255.zip | |
Add 'font-lock-maximum-decoration' levels for Python
* etc/NEWS: New entry under Python mode.
* lisp/progmodes/python.el (python-font-lock-keywords-level-1)
(python-font-lock-keywords-level-2)
(python-font-lock-keywords-maximum-decoration): New variables
based off the incumbent 'python-font-lock-keywords'.
(python-font-lock-keywords): Change it to a list of the new
symbols, for use in the 'car' of 'font-lock-defaults'.
(python-mode): Set the 'car' of 'font-lock-defaults' to the
value of 'python-font-lock-keywords', instead of the symbol
'python-font-lock-keywords'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -384,6 +384,13 @@ bound to 'C-c C-f'. | |||
| 384 | when escaping text and in addition all numeric entities when | 384 | when escaping text and in addition all numeric entities when |
| 385 | unescaping text. | 385 | unescaping text. |
| 386 | 386 | ||
| 387 | ** Python mode | ||
| 388 | |||
| 389 | --- | ||
| 390 | *** Python mode supports three different font lock decoration levels. | ||
| 391 | The maximum level is used by default; customize | ||
| 392 | 'font-lock-maximum-decoration' to tone down the decoration. | ||
| 393 | |||
| 387 | ** Dired | 394 | ** Dired |
| 388 | 395 | ||
| 389 | +++ | 396 | +++ |