Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption
- Blink-Cursor Diff-Auto-Refine Eldoc Electric-Indent File-Name-Shadow
- Font-Lock Global-Eldoc Global-Font-Lock Line-Number Mouse-Wheel
- Outline Shell-Dirtrack Tooltip Transient-Mark
- (Information about these minor modes follows the major mode info.)
- Py mode defined in ‘python-mode.el’:
- Major mode for editing Python files.
- To submit a problem report, enter ‘C-c C-b’ from a
- ‘python-mode’ buffer. Do ‘C-c ?’ for detailed
- documentation. To see what version of ‘python-mode’ you are running,
- enter ‘C-c C-v’.
- This mode knows about Python indentation, tokens, comments and
- continuation lines. Paragraphs are separated by blank lines only.
- COMMANDS
- ‘py-shell’ Start an interactive Python interpreter in another window
- ‘py-execute-statement’ Send statement at point to Python default interpreter
- ‘py-backward-statement’ Go to the initial line of a simple statement
- etc.
- See available commands listed in files commands-python-mode at directory doc
- VARIABLES
- ‘py-indent-offset’ indentation increment
- ‘py-shell-name’ shell command to invoke Python interpreter
- ‘py-split-window-on-execute’ When non-nil split windows
- ‘py-switch-buffers-on-execute-p’ When non-nil switch to the Python output buffer
- See available customizations listed in files variables-python-mode at directory doc
- key binding
- --- -------
- C-c Prefix Command
- TAB py-indent-or-complete
- C-j py-newline-and-indent
- RET newline
- C-x Prefix Command
- ESC Prefix Command
- # py-electric-comment
- : py-electric-colon
- <C-M-down> py-down
- <C-M-up> py-up
- <C-backspace> py-hungry-delete-backwards
- <backspace> py-electric-backspace
- <delete> py-electric-delete
- <s-backspace> py-dedent
- C-x n Prefix Command
- C-M-a py-backward-def-or-class
- C-M-d py-down
- C-M-e py-end-of-def-or-class
- C-M-h py-mark-def-or-class
- C-M-i completion-at-point
- C-M-u py-up
- C-M-x py-execute-def-or-class
- ESC <C-down> py-down
- ESC <C-up> py-up
- C-c C-b py-submit-bug-report
- C-c C-c py-execute-buffer
- C-c C-d py-pdbtrack-toggle-stack-tracking
- C-c C-e py-help-at-point
- C-c C-f py-sort-imports
- C-c C-k py-mark-block-or-clause
- C-c C-l py-shift-left
- C-c RET py-execute-import-or-reload
- C-c C-n py-forward-statement
- C-c C-p py-backward-statement
- C-c C-q py-forward-block
- C-c C-r py-shift-right
- C-c C-s py-execute-string
- C-c C-t py-toggle-shell
- C-c C-u py-backward-block
- C-c C-v py-version
- C-c C-w py-pychecker-run
- C-c ! py-shell
- C-c # py-comment-region
- C-c - py-up-exception
- C-c . py-expression
- C-c : py-guess-indent-offset
- C-c < py-shift-left
- C-c = py-down-exception
- C-c > py-shift-right
- C-c ? py-describe-mode
- C-c | py-execute-region
- C-c <delete> py-hungry-delete-forward
- C-c <tab> py-indent-region
- C-M-q prog-indent-sexp
- C-x n d py-narrow-to-defun
- In addition to any hooks its parent mode ‘prog-mode’ might have run,
- this mode runs the hook ‘python-mode-hook’, as the final or penultimate step
- during initialization.
- Auto-Composition minor mode (no indicator):
- Toggle Auto Composition mode.
- With a prefix argument ARG, enable Auto Composition mode if ARG
- is positive, and disable it otherwise. If called from Lisp,
- enable the mode if ARG is omitted or nil.
- When Auto Composition mode is enabled, text characters are
- automatically composed by functions registered in
- ‘composition-function-table’.
- You can use ‘global-auto-composition-mode’ to turn on
- Auto Composition mode in all buffers (this is the default).
- Auto-Compression minor mode (no indicator):
- Toggle Auto Compression mode.
- With a prefix argument ARG, enable Auto Compression mode if ARG
- is positive, and disable it otherwise. If called from Lisp,
- enable the mode if ARG is omitted or nil.
- Auto Compression mode is a global minor mode. When enabled,
- compressed files are automatically uncompressed for reading, and
- compressed when writing.
- Auto-Encryption minor mode (no indicator):
- Toggle automatic file encryption/decryption (Auto Encryption mode).
- With a prefix argument ARG, enable Auto Encryption mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- (fn &optional ARG)
- Blink-Cursor minor mode (no indicator):
- Toggle cursor blinking (Blink Cursor mode).
- With a prefix argument ARG, enable Blink Cursor mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- If the value of ‘blink-cursor-blinks’ is positive (10 by default),
- the cursor stops blinking after that number of blinks, if Emacs
- gets no input during that time.
- See also ‘blink-cursor-interval’ and ‘blink-cursor-delay’.
- This command is effective only on graphical frames. On text-only
- terminals, cursor blinking is controlled by the terminal.
- (fn &optional ARG)
- Diff-Auto-Refine minor mode (no indicator):
- Toggle automatic diff hunk highlighting (Diff Auto Refine mode).
- With a prefix argument ARG, enable Diff Auto Refine mode if ARG
- is positive, and disable it otherwise. If called from Lisp,
- enable the mode if ARG is omitted or nil.
- Diff Auto Refine mode is a buffer-local minor mode used with
- ‘diff-mode’. When enabled, Emacs automatically highlights
- changes in detail as the user visits hunks. When transitioning
- from disabled to enabled, it tries to refine the current hunk, as
- well.
- (fn &optional ARG)
- Eldoc minor mode (indicator ElDoc):
- Toggle echo area display of Lisp objects at point (ElDoc mode).
- With a prefix argument ARG, enable ElDoc mode if ARG is positive,
- and disable it otherwise. If called from Lisp, enable ElDoc mode
- if ARG is omitted or nil.
- ElDoc mode is a buffer-local minor mode. When enabled, the echo
- area displays information about a function or variable in the
- text where point is. If point is on a documented variable, it
- displays the first line of that variable’s doc string. Otherwise
- it displays the argument list of the function called in the
- expression point is on.
- (fn &optional ARG)
- Electric-Indent minor mode (no indicator):
- Toggle on-the-fly reindentation (Electric Indent mode).
- With a prefix argument ARG, enable Electric Indent mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- When enabled, this reindents whenever the hook ‘electric-indent-functions’
- returns non-nil, or if you insert a character from ‘electric-indent-chars’.
- This is a global minor mode. To toggle the mode in a single buffer,
- use ‘electric-indent-local-mode’.
- File-Name-Shadow minor mode (no indicator):
- Toggle file-name shadowing in minibuffers (File-Name Shadow mode).
- With a prefix argument ARG, enable File-Name Shadow mode if ARG
- is positive, and disable it otherwise. If called from Lisp,
- enable the mode if ARG is omitted or nil.
- File-Name Shadow mode is a global minor mode. When enabled, any
- part of a filename being read in the minibuffer that would be
- ignored (because the result is passed through
- ‘substitute-in-file-name’) is given the properties in
- ‘file-name-shadow-properties’, which can be used to make that
- portion dim, invisible, or otherwise less visually noticeable.
- Font-Lock minor mode (no indicator):
- Toggle syntax highlighting in this buffer (Font Lock mode).
- With a prefix argument ARG, enable Font Lock mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- When Font Lock mode is enabled, text is fontified as you type it:
- - Comments are displayed in ‘font-lock-comment-face’;
- - Strings are displayed in ‘font-lock-string-face’;
- - Certain other expressions are displayed in other faces
- according to the value of the variable ‘font-lock-keywords’.
- To customize the faces (colors, fonts, etc.) used by Font Lock for
- fontifying different parts of buffer text, use M-x customize-face.
- You can enable Font Lock mode in any major mode automatically by
- turning on in the major mode’s hook. For example, put in your
- ~/.emacs:
- (add-hook 'c-mode-hook 'turn-on-font-lock)
- Alternatively, you can use Global Font Lock mode to automagically
- turn on Font Lock mode in buffers whose major mode supports it
- and whose major mode is one of ‘font-lock-global-modes’. For
- example, put in your ~/.emacs:
- (global-font-lock-mode t)
- Where major modes support different levels of fontification, you
- can use the variable ‘font-lock-maximum-decoration’ to specify
- which level you generally prefer. When you turn Font Lock mode
- on/off the buffer is fontified/defontified, though fontification
- occurs only if the buffer is less than ‘font-lock-maximum-size’.
- To add your own highlighting for some major mode, and modify the
- highlighting selected automatically via the variable
- ‘font-lock-maximum-decoration’, you can use
- ‘font-lock-add-keywords’.
- To fontify a buffer, without turning on Font Lock mode and
- regardless of buffer size, you can use M-x font-lock-fontify-buffer.
- To fontify a block (the function or paragraph containing point,
- or a number of lines around point), perhaps because modification
- on the current line caused syntactic change on other lines, you
- can use M-o M-o.
- You can set your own default settings for some mode, by setting a
- buffer local value for ‘font-lock-defaults’, via its mode hook.
- The above is the default behavior of ‘font-lock-mode’; you may
- specify your own function which is called when ‘font-lock-mode’
- is toggled via ‘font-lock-function’.
- Global-Eldoc minor mode (no indicator):
- Toggle Eldoc mode in all buffers.
- With prefix ARG, enable Global Eldoc mode if ARG is positive;
- otherwise, disable it. If called from Lisp, enable the mode if
- ARG is omitted or nil.
- Eldoc mode is enabled in all buffers where
- ‘turn-on-eldoc-mode’ would do it.
- See ‘eldoc-mode’ for more information on Eldoc mode.
- (fn &optional ARG)
- Global-Font-Lock minor mode (no indicator):
- Toggle Font-Lock mode in all buffers.
- With prefix ARG, enable Global Font-Lock mode if ARG is positive;
- otherwise, disable it. If called from Lisp, enable the mode if
- ARG is omitted or nil.
- Font-Lock mode is enabled in all buffers where
- ‘turn-on-font-lock-if-desired’ would do it.
- See ‘font-lock-mode’ for more information on Font-Lock mode.
- Line-Number minor mode (no indicator):
- Toggle line number display in the mode line (Line Number mode).
- With a prefix argument ARG, enable Line Number mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- Line numbers do not appear for very large buffers and buffers
- with very long lines; see variables ‘line-number-display-limit’
- and ‘line-number-display-limit-width’.
- (fn &optional ARG)
- Mouse-Wheel minor mode (no indicator):
- Toggle mouse wheel support (Mouse Wheel mode).
- With a prefix argument ARG, enable Mouse Wheel mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- Outline minor mode (indicator Outl):
- Toggle Outline minor mode.
- With a prefix argument ARG, enable Outline minor mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- See the command ‘outline-mode’ for more information on this mode.
- Shell-Dirtrack minor mode (no indicator):
- Toggle directory tracking in this shell buffer (Shell Dirtrack mode).
- With a prefix argument ARG, enable Shell Dirtrack mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- the mode if ARG is omitted or nil.
- The ‘dirtrack’ package provides an alternative implementation of
- this feature; see the function ‘dirtrack-mode’.
- (fn &optional ARG)
- Tooltip minor mode (no indicator):
- Toggle Tooltip mode.
- With a prefix argument ARG, enable Tooltip mode if ARG is positive,
- and disable it otherwise. If called from Lisp, enable the mode
- if ARG is omitted or nil.
- When this global minor mode is enabled, Emacs displays help
- text (e.g. for buttons and menu items that you put the mouse on)
- in a pop-up window.
- When Tooltip mode is disabled, Emacs displays help text in the
- echo area, instead of making a pop-up window.
- Transient-Mark minor mode (no indicator):
- Toggle Transient Mark mode.
- With a prefix argument ARG, enable Transient Mark mode if ARG is
- positive, and disable it otherwise. If called from Lisp, enable
- Transient Mark mode if ARG is omitted or nil.
- Transient Mark mode is a global minor mode. When enabled, the
- region is highlighted with the ‘region’ face whenever the mark
- is active. The mark is "deactivated" by changing the buffer,
- and after certain other operations that set the mark but whose
- main purpose is something else--for example, incremental search,
- <, and >.
- You can also deactivate the mark by typing C-g or
- M-ESC ESC.
- Many commands change their behavior when Transient Mark mode is
- in effect and the mark is active, by acting on the region instead
- of their usual default part of the buffer’s text. Examples of
- such commands include M-;, M-x flush-lines, M-x keep-lines,
- M-%, C-M-%, M-x ispell, and C-x u.
- To see the documentation of commands which are sensitive to the
- Transient Mark mode, invoke C-h d and type "transient"
- or "mark.*active" at the prompt.
- (fn &optional ARG)
- [back]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement