Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.40 KB | None | 0 0
  1. Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
  2. Blink-Cursor Diff-Auto-Refine Eldoc Electric-Indent File-Name-Shadow
  3. Font-Lock Global-Eldoc Global-Font-Lock Line-Number Mouse-Wheel
  4. Outline Shell-Dirtrack Tooltip Transient-Mark
  5.  
  6. (Information about these minor modes follows the major mode info.)
  7.  
  8. Py mode defined in ‘python-mode.el’:
  9. Major mode for editing Python files.
  10.  
  11. To submit a problem report, enter ‘C-c C-b’ from a
  12. ‘python-mode’ buffer. Do ‘C-c ?’ for detailed
  13. documentation. To see what version of ‘python-mode’ you are running,
  14. enter ‘C-c C-v’.
  15.  
  16. This mode knows about Python indentation, tokens, comments and
  17. continuation lines. Paragraphs are separated by blank lines only.
  18.  
  19. COMMANDS
  20.  
  21. ‘py-shell’ Start an interactive Python interpreter in another window
  22. ‘py-execute-statement’ Send statement at point to Python default interpreter
  23. ‘py-backward-statement’ Go to the initial line of a simple statement
  24.  
  25. etc.
  26.  
  27. See available commands listed in files commands-python-mode at directory doc
  28.  
  29. VARIABLES
  30.  
  31. ‘py-indent-offset’ indentation increment
  32. ‘py-shell-name’ shell command to invoke Python interpreter
  33. ‘py-split-window-on-execute’ When non-nil split windows
  34. ‘py-switch-buffers-on-execute-p’ When non-nil switch to the Python output buffer
  35.  
  36. See available customizations listed in files variables-python-mode at directory doc
  37.  
  38. key binding
  39. --- -------
  40.  
  41. C-c Prefix Command
  42. TAB py-indent-or-complete
  43. C-j py-newline-and-indent
  44. RET newline
  45. C-x Prefix Command
  46. ESC Prefix Command
  47. # py-electric-comment
  48. : py-electric-colon
  49. <C-M-down> py-down
  50. <C-M-up> py-up
  51. <C-backspace> py-hungry-delete-backwards
  52. <backspace> py-electric-backspace
  53. <delete> py-electric-delete
  54. <s-backspace> py-dedent
  55.  
  56. C-x n Prefix Command
  57.  
  58. C-M-a py-backward-def-or-class
  59. C-M-d py-down
  60. C-M-e py-end-of-def-or-class
  61. C-M-h py-mark-def-or-class
  62. C-M-i completion-at-point
  63. C-M-u py-up
  64. C-M-x py-execute-def-or-class
  65. ESC <C-down> py-down
  66. ESC <C-up> py-up
  67.  
  68. C-c C-b py-submit-bug-report
  69. C-c C-c py-execute-buffer
  70. C-c C-d py-pdbtrack-toggle-stack-tracking
  71. C-c C-e py-help-at-point
  72. C-c C-f py-sort-imports
  73. C-c C-k py-mark-block-or-clause
  74. C-c C-l py-shift-left
  75. C-c RET py-execute-import-or-reload
  76. C-c C-n py-forward-statement
  77. C-c C-p py-backward-statement
  78. C-c C-q py-forward-block
  79. C-c C-r py-shift-right
  80. C-c C-s py-execute-string
  81. C-c C-t py-toggle-shell
  82. C-c C-u py-backward-block
  83. C-c C-v py-version
  84. C-c C-w py-pychecker-run
  85. C-c ! py-shell
  86. C-c # py-comment-region
  87. C-c - py-up-exception
  88. C-c . py-expression
  89. C-c : py-guess-indent-offset
  90. C-c < py-shift-left
  91. C-c = py-down-exception
  92. C-c > py-shift-right
  93. C-c ? py-describe-mode
  94. C-c | py-execute-region
  95. C-c <delete> py-hungry-delete-forward
  96. C-c <tab> py-indent-region
  97.  
  98. C-M-q prog-indent-sexp
  99.  
  100. C-x n d py-narrow-to-defun
  101.  
  102.  
  103.  
  104. In addition to any hooks its parent mode ‘prog-mode’ might have run,
  105. this mode runs the hook ‘python-mode-hook’, as the final or penultimate step
  106. during initialization.
  107. Auto-Composition minor mode (no indicator):
  108. Toggle Auto Composition mode.
  109. With a prefix argument ARG, enable Auto Composition mode if ARG
  110. is positive, and disable it otherwise. If called from Lisp,
  111. enable the mode if ARG is omitted or nil.
  112.  
  113. When Auto Composition mode is enabled, text characters are
  114. automatically composed by functions registered in
  115. ‘composition-function-table’.
  116.  
  117. You can use ‘global-auto-composition-mode’ to turn on
  118. Auto Composition mode in all buffers (this is the default).
  119. Auto-Compression minor mode (no indicator):
  120. Toggle Auto Compression mode.
  121. With a prefix argument ARG, enable Auto Compression mode if ARG
  122. is positive, and disable it otherwise. If called from Lisp,
  123. enable the mode if ARG is omitted or nil.
  124.  
  125. Auto Compression mode is a global minor mode. When enabled,
  126. compressed files are automatically uncompressed for reading, and
  127. compressed when writing.
  128. Auto-Encryption minor mode (no indicator):
  129. Toggle automatic file encryption/decryption (Auto Encryption mode).
  130. With a prefix argument ARG, enable Auto Encryption mode if ARG is
  131. positive, and disable it otherwise. If called from Lisp, enable
  132. the mode if ARG is omitted or nil.
  133.  
  134. (fn &optional ARG)
  135. Blink-Cursor minor mode (no indicator):
  136. Toggle cursor blinking (Blink Cursor mode).
  137. With a prefix argument ARG, enable Blink Cursor mode if ARG is
  138. positive, and disable it otherwise. If called from Lisp, enable
  139. the mode if ARG is omitted or nil.
  140.  
  141. If the value of ‘blink-cursor-blinks’ is positive (10 by default),
  142. the cursor stops blinking after that number of blinks, if Emacs
  143. gets no input during that time.
  144.  
  145. See also ‘blink-cursor-interval’ and ‘blink-cursor-delay’.
  146.  
  147. This command is effective only on graphical frames. On text-only
  148. terminals, cursor blinking is controlled by the terminal.
  149.  
  150. (fn &optional ARG)
  151. Diff-Auto-Refine minor mode (no indicator):
  152. Toggle automatic diff hunk highlighting (Diff Auto Refine mode).
  153. With a prefix argument ARG, enable Diff Auto Refine mode if ARG
  154. is positive, and disable it otherwise. If called from Lisp,
  155. enable the mode if ARG is omitted or nil.
  156.  
  157. Diff Auto Refine mode is a buffer-local minor mode used with
  158. ‘diff-mode’. When enabled, Emacs automatically highlights
  159. changes in detail as the user visits hunks. When transitioning
  160. from disabled to enabled, it tries to refine the current hunk, as
  161. well.
  162.  
  163. (fn &optional ARG)
  164. Eldoc minor mode (indicator ElDoc):
  165. Toggle echo area display of Lisp objects at point (ElDoc mode).
  166. With a prefix argument ARG, enable ElDoc mode if ARG is positive,
  167. and disable it otherwise. If called from Lisp, enable ElDoc mode
  168. if ARG is omitted or nil.
  169.  
  170. ElDoc mode is a buffer-local minor mode. When enabled, the echo
  171. area displays information about a function or variable in the
  172. text where point is. If point is on a documented variable, it
  173. displays the first line of that variable’s doc string. Otherwise
  174. it displays the argument list of the function called in the
  175. expression point is on.
  176.  
  177. (fn &optional ARG)
  178. Electric-Indent minor mode (no indicator):
  179. Toggle on-the-fly reindentation (Electric Indent mode).
  180. With a prefix argument ARG, enable Electric Indent mode if ARG is
  181. positive, and disable it otherwise. If called from Lisp, enable
  182. the mode if ARG is omitted or nil.
  183.  
  184. When enabled, this reindents whenever the hook ‘electric-indent-functions’
  185. returns non-nil, or if you insert a character from ‘electric-indent-chars’.
  186.  
  187. This is a global minor mode. To toggle the mode in a single buffer,
  188. use ‘electric-indent-local-mode’.
  189. File-Name-Shadow minor mode (no indicator):
  190. Toggle file-name shadowing in minibuffers (File-Name Shadow mode).
  191. With a prefix argument ARG, enable File-Name Shadow mode if ARG
  192. is positive, and disable it otherwise. If called from Lisp,
  193. enable the mode if ARG is omitted or nil.
  194.  
  195. File-Name Shadow mode is a global minor mode. When enabled, any
  196. part of a filename being read in the minibuffer that would be
  197. ignored (because the result is passed through
  198. ‘substitute-in-file-name’) is given the properties in
  199. ‘file-name-shadow-properties’, which can be used to make that
  200. portion dim, invisible, or otherwise less visually noticeable.
  201. Font-Lock minor mode (no indicator):
  202. Toggle syntax highlighting in this buffer (Font Lock mode).
  203. With a prefix argument ARG, enable Font Lock mode if ARG is
  204. positive, and disable it otherwise. If called from Lisp, enable
  205. the mode if ARG is omitted or nil.
  206.  
  207. When Font Lock mode is enabled, text is fontified as you type it:
  208.  
  209. - Comments are displayed in ‘font-lock-comment-face’;
  210. - Strings are displayed in ‘font-lock-string-face’;
  211. - Certain other expressions are displayed in other faces
  212. according to the value of the variable ‘font-lock-keywords’.
  213.  
  214. To customize the faces (colors, fonts, etc.) used by Font Lock for
  215. fontifying different parts of buffer text, use M-x customize-face.
  216.  
  217. You can enable Font Lock mode in any major mode automatically by
  218. turning on in the major mode’s hook. For example, put in your
  219. ~/.emacs:
  220.  
  221. (add-hook 'c-mode-hook 'turn-on-font-lock)
  222.  
  223. Alternatively, you can use Global Font Lock mode to automagically
  224. turn on Font Lock mode in buffers whose major mode supports it
  225. and whose major mode is one of ‘font-lock-global-modes’. For
  226. example, put in your ~/.emacs:
  227.  
  228. (global-font-lock-mode t)
  229.  
  230. Where major modes support different levels of fontification, you
  231. can use the variable ‘font-lock-maximum-decoration’ to specify
  232. which level you generally prefer. When you turn Font Lock mode
  233. on/off the buffer is fontified/defontified, though fontification
  234. occurs only if the buffer is less than ‘font-lock-maximum-size’.
  235.  
  236. To add your own highlighting for some major mode, and modify the
  237. highlighting selected automatically via the variable
  238. ‘font-lock-maximum-decoration’, you can use
  239. ‘font-lock-add-keywords’.
  240.  
  241. To fontify a buffer, without turning on Font Lock mode and
  242. regardless of buffer size, you can use M-x font-lock-fontify-buffer.
  243.  
  244. To fontify a block (the function or paragraph containing point,
  245. or a number of lines around point), perhaps because modification
  246. on the current line caused syntactic change on other lines, you
  247. can use M-o M-o.
  248.  
  249. You can set your own default settings for some mode, by setting a
  250. buffer local value for ‘font-lock-defaults’, via its mode hook.
  251.  
  252. The above is the default behavior of ‘font-lock-mode’; you may
  253. specify your own function which is called when ‘font-lock-mode’
  254. is toggled via ‘font-lock-function’.
  255. Global-Eldoc minor mode (no indicator):
  256. Toggle Eldoc mode in all buffers.
  257. With prefix ARG, enable Global Eldoc mode if ARG is positive;
  258. otherwise, disable it. If called from Lisp, enable the mode if
  259. ARG is omitted or nil.
  260.  
  261. Eldoc mode is enabled in all buffers where
  262. ‘turn-on-eldoc-mode’ would do it.
  263. See ‘eldoc-mode’ for more information on Eldoc mode.
  264.  
  265. (fn &optional ARG)
  266. Global-Font-Lock minor mode (no indicator):
  267. Toggle Font-Lock mode in all buffers.
  268. With prefix ARG, enable Global Font-Lock mode if ARG is positive;
  269. otherwise, disable it. If called from Lisp, enable the mode if
  270. ARG is omitted or nil.
  271.  
  272. Font-Lock mode is enabled in all buffers where
  273. ‘turn-on-font-lock-if-desired’ would do it.
  274. See ‘font-lock-mode’ for more information on Font-Lock mode.
  275. Line-Number minor mode (no indicator):
  276. Toggle line number display in the mode line (Line Number mode).
  277. With a prefix argument ARG, enable Line Number mode if ARG is
  278. positive, and disable it otherwise. If called from Lisp, enable
  279. the mode if ARG is omitted or nil.
  280.  
  281. Line numbers do not appear for very large buffers and buffers
  282. with very long lines; see variables ‘line-number-display-limit’
  283. and ‘line-number-display-limit-width’.
  284.  
  285. (fn &optional ARG)
  286. Mouse-Wheel minor mode (no indicator):
  287. Toggle mouse wheel support (Mouse Wheel mode).
  288. With a prefix argument ARG, enable Mouse Wheel mode if ARG is
  289. positive, and disable it otherwise. If called from Lisp, enable
  290. the mode if ARG is omitted or nil.
  291. Outline minor mode (indicator Outl):
  292. Toggle Outline minor mode.
  293. With a prefix argument ARG, enable Outline minor mode if ARG is
  294. positive, and disable it otherwise. If called from Lisp, enable
  295. the mode if ARG is omitted or nil.
  296.  
  297. See the command ‘outline-mode’ for more information on this mode.
  298. Shell-Dirtrack minor mode (no indicator):
  299. Toggle directory tracking in this shell buffer (Shell Dirtrack mode).
  300. With a prefix argument ARG, enable Shell Dirtrack mode if ARG is
  301. positive, and disable it otherwise. If called from Lisp, enable
  302. the mode if ARG is omitted or nil.
  303.  
  304. The ‘dirtrack’ package provides an alternative implementation of
  305. this feature; see the function ‘dirtrack-mode’.
  306.  
  307. (fn &optional ARG)
  308. Tooltip minor mode (no indicator):
  309. Toggle Tooltip mode.
  310. With a prefix argument ARG, enable Tooltip mode if ARG is positive,
  311. and disable it otherwise. If called from Lisp, enable the mode
  312. if ARG is omitted or nil.
  313.  
  314. When this global minor mode is enabled, Emacs displays help
  315. text (e.g. for buttons and menu items that you put the mouse on)
  316. in a pop-up window.
  317.  
  318. When Tooltip mode is disabled, Emacs displays help text in the
  319. echo area, instead of making a pop-up window.
  320. Transient-Mark minor mode (no indicator):
  321. Toggle Transient Mark mode.
  322. With a prefix argument ARG, enable Transient Mark mode if ARG is
  323. positive, and disable it otherwise. If called from Lisp, enable
  324. Transient Mark mode if ARG is omitted or nil.
  325.  
  326. Transient Mark mode is a global minor mode. When enabled, the
  327. region is highlighted with the ‘region’ face whenever the mark
  328. is active. The mark is "deactivated" by changing the buffer,
  329. and after certain other operations that set the mark but whose
  330. main purpose is something else--for example, incremental search,
  331. <, and >.
  332.  
  333. You can also deactivate the mark by typing C-g or
  334. M-ESC ESC.
  335.  
  336. Many commands change their behavior when Transient Mark mode is
  337. in effect and the mark is active, by acting on the region instead
  338. of their usual default part of the buffer’s text. Examples of
  339. such commands include M-;, M-x flush-lines, M-x keep-lines,
  340. M-%, C-M-%, M-x ispell, and C-x u.
  341. To see the documentation of commands which are sensitive to the
  342. Transient Mark mode, invoke C-h d and type "transient"
  343. or "mark.*active" at the prompt.
  344.  
  345. (fn &optional ARG)
  346.  
  347. [back]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement