python(9)py-doc - "Display Python manual page"
python - Python Language File.
py-doc "man-page"
hkpython.emf - Python Language file hook definition and py-doc macro implementation
python.eaf - Python abbreviation file
python.etf - Python template file
.py - Python file
^#![ \t]*/.*env[ \t]+python
The python file type template provides simple hilighting of Python files, the template provides minimal hilighting.
File recognition is performed using the standard file extension .py, or by the magic string.
It offers as well folding and support for displaying an outline of the functions of the Python script for easy navigation using the item-list(3) command. Further is is possible to expand abbreviations either via short strings using the expand-abbrev-handle(3) command and visual inserting abbreviations using the mouse by the abbrev-list(3) macro.
Folding and Information Hiding
List Items
Abbreviations
Short Cuts
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
f2 - (un)fold the current region
f3 - (un)fold all regions
f6 - list items
esc f6 - close list items
Executing, Formatting and Linting Python Code
pip3 install ruff --user
py-doc macro
Python help on ?
The command invokes Python(1) using the pydoc module to generate the requested manual page in a "*py-doc*" buffer. This buffer supports item-list(3) to help browse the content generated.
The hilightings or the item-list matches are typically extended using a file mypython.emf.
There would appear to be too much applied hilighting in this file, it could probably do with rationalizing.
abbrev-list(3), collapse-all(3), collapse-current(3), expand-abbrev-handle(3), file-exec(3), file-format(3), file-lint(3), item-list(3).
(c) Copyright JASSPA 2025
Last Modified: 2025/08/28
Generated On: 2025/09/29