Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Major mode LaTeX-mode
- The major mode is LaTeX/PS mode defined in tex-mode.el:
- Major mode for editing files of input for LaTeX.
- Makes $ and } display the characters they match.
- Makes " insert `` when it seems to be the beginning of a quotation,
- and '' when it appears to be the end; it inserts " only after a \.
- Use M-x tex-region to run LaTeX on the current region, plus the preamble
- copied from the top of the file (containing \documentstyle, etc.),
- running LaTeX under a special subshell. M-x tex-buffer does the whole buffer.
- M-x tex-file saves the buffer and then processes the file.
- M-x tex-print prints the .dvi file made by any of these.
- M-x tex-view previews the .dvi file made by any of these.
- M-x tex-bibtex-file runs bibtex on the file of the current buffer.
- Use M-x tex-validate-buffer to check buffer for paragraphs containing
- mismatched $’s or braces.
- Special commands:
- Key Binding
- C-j tex-handle-newline
- " tex-insert-quote
- C-<return> tex-feed-input
- C-c C-s latex-split-block
- M-RET latex-insert-item
- C-c C-b tex-buffer
- C-c C-c tex-compile
- C-c C-e latex-close-block
- C-c C-f tex-file
- C-c TAB tex-bibtex-file
- C-c C-k tex-kill-job
- C-c C-l tex-recenter-output-buffer
- C-c RET tex-feed-input
- C-c C-o latex-insert-block
- C-c C-p tex-print
- C-c C-q tex-show-print-queue
- C-c C-r tex-region
- C-c C-t latex-insert-block
- C-c C-u tex-goto-last-unclosed-latex-block
- C-c C-v tex-view
- C-c / latex-close-block
- C-c ] latex-close-block
- C-c { tex-insert-braces
- C-c } up-list
- Mode variables:
- latex-run-command
- Command string used by M-x tex-region or M-x tex-buffer.
- tex-directory
- Directory in which to create temporary files for LaTeX jobs
- run by M-x tex-region or M-x tex-buffer.
- tex-dvi-print-command
- Command string used by M-x tex-print to print a .dvi file.
- tex-alt-dvi-print-command
- Alternative command string used by M-x tex-print (when given a prefix
- argument) to print a .dvi file.
- tex-dvi-view-command
- Command string used by M-x tex-view to preview a .dvi file.
- tex-show-queue-command
- Command string used by M-x tex-show-print-queue to show the print
- queue that M-x tex-print put your job on.
- Entering Latex mode runs the hook ‘text-mode-hook’, then
- ‘tex-mode-hook’, and finally ‘latex-mode-hook’. When the special
- subshell is initiated, ‘tex-shell-hook’ is run.
- Local minor mode auto-save-mode
- Auto-Save minor mode (no indicator):
- Toggle auto-saving in the current buffer (Auto Save mode).
- When this mode is enabled, Emacs periodically saves each file-visiting
- buffer in a separate "auto-save file". This is a safety measure to
- prevent you from losing more than a limited amount of work if the
- system crashes.
- Auto-saving does not alter the file visited by the buffer: the visited
- file is changed only when you request saving it explicitly (such as
- with C-x C-s). If you want to save the buffer into its
- visited files automatically, use M-x auto-save-visited-mode).
- For more details, see Info node ‘(emacs) Auto Save’.
- This is a minor mode. If called interactively, toggle the ‘Auto-Save
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(and buffer-auto-save-file-name (>= buffer-saved-size 0))’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode corfu-mode
- Corfu minor mode (no indicator):
- COmpletion in Region FUnction.
- This is a minor mode. If called interactively, toggle the ‘Corfu mode’
- mode. If the prefix argument is positive, enable the mode, and if it is
- zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘corfu-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode flyspell-mode
- Flyspell minor mode (indicator Fly/en):
- Toggle on-the-fly spell checking (Flyspell mode).
- Flyspell mode is a buffer-local minor mode. When enabled, it
- spawns a single Ispell process and checks each word. The default
- flyspell behavior is to highlight incorrect words.
- This mode is geared toward text modes. In buffers that contain
- code, ‘flyspell-prog-mode’ is usually a better choice.
- Bindings:
- M-$: correct words (using Ispell).
- M-x flyspell-auto-correct-word: automatically correct word.
- M-x flyspell-auto-correct-previous-word: automatically correct the last misspelled word.
- M-x flyspell-correct-word (or down-mouse-2): popup correct words.
- Hooks:
- This runs ‘flyspell-mode-hook’ after flyspell mode is entered or exit.
- Remark:
- ‘flyspell-mode’ uses ‘ispell-mode’. Thus all Ispell options are
- valid. For instance, a different dictionary can be used by
- invoking ‘ispell-change-dictionary’.
- Consider using the ‘ispell-parser’ to check your text. For instance
- consider adding:
- (add-hook 'tex-mode-hook (lambda () (setq ispell-parser 'tex)))
- in your init file.
- M-x flyspell-region checks all words inside a region.
- M-x flyspell-buffer checks the whole buffer.
- This is a minor mode. If called interactively, toggle the ‘Flyspell
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘flyspell-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode font-lock-mode
- Font-Lock minor mode (no indicator):
- Toggle syntax highlighting in this buffer (Font Lock mode).
- 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.
- 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-x font-lock-fontify-block.
- 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’.
- This is a minor mode. If called interactively, toggle the ‘Font-Lock
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘font-lock-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode hl-line-mode
- Hl-Line minor mode (no indicator):
- Toggle highlighting of the current line (Hl-Line mode).
- Hl-Line mode is a buffer-local minor mode. If
- ‘hl-line-sticky-flag’ is non-nil, Hl-Line mode highlights the
- line about the buffer’s point in all windows. Caveat: the
- buffer’s point might be different from the point of a
- non-selected window. Hl-Line mode uses the function
- ‘hl-line-highlight’ on ‘post-command-hook’ in this case.
- When ‘hl-line-sticky-flag’ is nil, Hl-Line mode highlights the
- line about point in the selected window only.
- This is a minor mode. If called interactively, toggle the ‘Hl-Line
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘hl-line-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode hl-todo-mode
- Hl-Todo minor mode (no indicator):
- Highlight TODO and similar keywords in comments and strings.
- This is a minor mode. If called interactively, toggle the ‘Hl-Todo
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘hl-todo-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode indent-bars-mode
- Indent-Bars minor mode (no indicator):
- Indicate indentation with configurable bars.
- This is a minor mode. If called interactively, toggle the ‘Indent-Bars
- mode’ mode. If the prefix argument is positive, enable the mode, and if
- it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘indent-bars-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode outline-indent-minor-mode
- Outline-Indent minor mode (indicator OutlInd):
- Toggle ‘outline-indent-minor-mode’.
- This mode sets up outline to work based on indentation.
- This is a minor mode. If called interactively, toggle the
- ‘Outline-Indent minor mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘outline-indent-minor-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode outline-minor-mode
- Outline minor mode (indicator Outl):
- Toggle Outline minor mode.
- See the command ‘outline-mode’ for more information on this mode.
- This is a minor mode. If called interactively, toggle the ‘Outline
- minor mode’ mode. If the prefix argument is positive, enable the mode,
- and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘outline-minor-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode pulsar-mode
- Pulsar minor mode (no indicator):
- Set up pulsar for each function in pulsar functions lists.
- The effective lists are ‘pulsar-pulse-functions’ and
- ‘pulsar-pulse-region-functions’. This is a buffer-local mode.
- Also check ‘pulsar-global-mode’.
- This is a minor mode. If called interactively, toggle the ‘Pulsar mode’
- mode. If the prefix argument is positive, enable the mode, and if it is
- zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘pulsar-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Local minor mode reftex-mode
- Reftex minor mode (indicator Ref):
- Minor mode with distinct support for \label, \ref and \cite in LaTeX.
- A Table of Contents of the entire (multifile) document with browsing
- capabilities is available with ‘C-c =’.
- Labels can be created with ‘C-c (’ and referenced with ‘C-c )’.
- When referencing, you get a menu with all labels of a given type and
- context of the label definition. The selected label is inserted as a
- \ref macro.
- Citations can be made with ‘C-c [’ which will use a regular expression
- to pull out a *formatted* list of articles from your BibTeX
- database. The selected citation is inserted as a \cite macro.
- Index entries can be made with ‘C-c /’ which indexes the word at point
- or the current selection. More general index entries are created with
- ‘C-c <’. ‘C-c >’ displays the compiled index.
- Most command have help available on the fly. This help is accessed by
- pressing ‘?’ to any prompt mentioning this feature.
- Extensive documentation about RefTeX is available in Info format.
- You can view this information with ‘M-x reftex-info’.
- Key Binding
- S-<mouse-2> reftex-mouse-view-crossref
- C-c & reftex-view-crossref
- C-c ( reftex-label
- C-c ) reftex-reference
- C-c - reftex-toc-recenter
- C-c / reftex-index-selection-or-word
- C-c < reftex-index
- C-c = reftex-toc
- C-c > reftex-display-index
- C-c [ reftex-citation
- C-c \ reftex-index-phrase-selection-or-word
- C-c | reftex-index-visit-phrases-buffer
- Under X, these and other functions will also be available as ‘Ref’ menu
- on the menu bar.
- ------------------------------------------------------------------------------
- This is a minor mode. If called interactively, toggle the ‘Reftex mode’
- mode. If the prefix argument is positive, enable the mode, and if it is
- zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate the variable ‘reftex-mode’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode TeX-source-correlate-mode
- Tex-Source-Correlate minor mode (no indicator):
- Minor mode for forward and inverse search.
- If enabled, the viewer can be advised to show the output page
- corresponding to the point in the source and vice versa.
- The method to be used can be controlled with the variable
- ‘TeX-source-correlate-method’. Currently source specials or
- SyncTeX are recognized.
- This is a global minor mode. If called interactively, toggle the
- ‘Tex-Source-Correlate mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'TeX-source-correlate-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode auto-encryption-mode
- Auto-Encryption minor mode (no indicator):
- Toggle automatic file encryption/decryption (Auto Encryption mode).
- This is a global minor mode. If called interactively, toggle the
- ‘Auto-Encryption mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'auto-encryption-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode blink-cursor-mode
- Blink-Cursor minor mode (no indicator):
- Toggle cursor blinking (Blink Cursor mode).
- 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.
- This is a global minor mode. If called interactively, toggle the
- ‘Blink-Cursor mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'blink-cursor-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode column-number-mode
- Column-Number minor mode (no indicator):
- Toggle column number display in the mode line (Column Number mode).
- See ‘mode-line-position-column-format’ for how this number is
- presented.
- This is a global minor mode. If called interactively, toggle the
- ‘Column-Number mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'column-number-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode delete-selection-mode
- Delete-Selection minor mode (no indicator):
- Toggle Delete Selection mode.
- When Delete Selection mode is enabled, typed text replaces the selection
- if the selection is active. Otherwise, typed text is just inserted at
- point regardless of any selection.
- See ‘delete-selection-helper’ and ‘delete-selection-pre-hook’ for
- information on adapting behavior of commands in Delete Selection mode.
- This is a global minor mode. If called interactively, toggle the
- ‘Delete-Selection mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'delete-selection-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode denote-rename-buffer-mode
- Denote-Rename-Buffer minor mode (no indicator):
- Automatically rename Denote buffers to be easier to read.
- A buffer is renamed upon visiting the underlying file. This
- means that existing buffers are not renamed until they are
- visited again in a new buffer (files are visited with the command
- ‘find-file’ or related).
- This is a global minor mode. If called interactively, toggle the
- ‘Denote-Rename-Buffer mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'denote-rename-buffer-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode display-time-mode
- Display-Time minor mode (no indicator):
- Toggle display of time, load level, and mail flag in mode lines.
- When Display Time mode is enabled, it updates every minute (you
- can control the number of seconds between updates by customizing
- ‘display-time-interval’). If ‘display-time-day-and-date’ is
- non-nil, the current day and date are displayed as well. This
- runs the normal hook ‘display-time-hook’ after each update.
- This is a global minor mode. If called interactively, toggle the
- ‘Display-Time mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'display-time-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode doom-modeline-mode
- Doom-Modeline minor mode (no indicator):
- Toggle ‘doom-modeline’ on or off.
- This is a global minor mode. If called interactively, toggle the
- ‘Doom-Modeline mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'doom-modeline-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode electric-indent-mode
- Electric-Indent minor mode (no indicator):
- Toggle on-the-fly reindentation of text lines (Electric Indent mode).
- When enabled, this reindents whenever the hook ‘electric-indent-functions’
- returns non-nil, or if you insert one of the "electric characters".
- The electric characters normally include the newline, but can
- also include other characters as needed by the major mode; see
- ‘electric-indent-chars’ for the actual list.
- By "reindent" we mean remove any existing indentation, and then
- indent the line according to context and rules of the major mode.
- This is a global minor mode. To toggle the mode in a single buffer,
- use ‘electric-indent-local-mode’.
- This is a global minor mode. If called interactively, toggle the
- ‘Electric-Indent mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'electric-indent-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode electric-pair-mode
- Electric-Pair minor mode (no indicator):
- Toggle automatic parens pairing (Electric Pair mode).
- Electric Pair mode is a global minor mode. When enabled, typing
- an open parenthesis automatically inserts the corresponding
- closing parenthesis, and vice versa. (Likewise for brackets, etc.).
- If the region is active, the parentheses (brackets, etc.) are
- inserted around the region instead.
- To toggle the mode in a single buffer, use ‘electric-pair-local-mode’.
- This is a global minor mode. If called interactively, toggle the
- ‘Electric-Pair mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'electric-pair-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode file-name-shadow-mode
- File-Name-Shadow minor mode (no indicator):
- Toggle file-name shadowing in minibuffers (File-Name Shadow mode).
- 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.
- This is a global minor mode. If called interactively, toggle the
- ‘File-Name-Shadow mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'file-name-shadow-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode global-auto-revert-mode
- Global-Auto-Revert minor mode (no indicator):
- Toggle Global Auto-Revert Mode.
- Global Auto-Revert Mode is a global minor mode that reverts any
- buffer associated with a file when the file changes on disk. Use
- ‘auto-revert-mode’ to revert a particular buffer.
- If ‘global-auto-revert-non-file-buffers’ is non-nil, this mode
- may also revert some non-file buffers, as described in the
- documentation of that variable. It ignores buffers with modes
- matching ‘global-auto-revert-ignore-modes’, and buffers with a
- non-nil value of ‘global-auto-revert-ignore-buffer’.
- When a buffer is reverted, a message is generated. This can be
- suppressed by setting ‘auto-revert-verbose’ to nil.
- This function calls the hook ‘global-auto-revert-mode-hook’.
- It displays the text that ‘global-auto-revert-mode-text’
- specifies in the mode line.
- This is a global minor mode. If called interactively, toggle the
- ‘Global Auto-Revert mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'global-auto-revert-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode global-corfu-mode
- Global-Corfu minor mode (no indicator):
- Toggle Corfu mode in all buffers.
- With prefix ARG, enable Global Corfu mode if ARG is positive;
- otherwise, disable it.
- If called from Lisp, toggle the mode if ARG is ‘toggle’.
- Enable the mode if ARG is nil, omitted, or is a positive number.
- Disable the mode if ARG is a negative number.
- Corfu mode is enabled in all buffers where ‘corfu--on’ would do it.
- See ‘corfu-mode’ for more information on Corfu mode.
- Global minor mode global-eldoc-mode
- 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, toggle the mode if ARG is ‘toggle’.
- Enable the mode if ARG is nil, omitted, or is a positive number.
- Disable the mode if ARG is a negative number.
- Eldoc mode is enabled in all buffers where ‘turn-on-eldoc-mode’ would do
- it.
- See ‘eldoc-mode’ for more information on Eldoc mode.
- Global minor mode global-font-lock-mode
- 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, toggle the mode if ARG is ‘toggle’.
- Enable the mode if ARG is nil, omitted, or is a positive number.
- Disable the mode if ARG is a negative number.
- 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.
- Global minor mode marginalia-mode
- Marginalia minor mode (no indicator):
- Annotate completion candidates with richer information.
- This is a global minor mode. If called interactively, toggle the
- ‘Marginalia mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'marginalia-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode minibuffer-regexp-mode
- Minibuffer-Regexp minor mode (no indicator):
- Minor mode for editing regular expressions in the minibuffer.
- Highlight parens via ‘show-paren-mode’ and ‘blink-matching-paren’
- in a user-friendly way, avoid reporting alleged paren mismatches
- and make sexp navigation more intuitive.
- The list of prompts activating this mode in specific minibuffer
- interactions is customizable via ‘minibuffer-regexp-prompts’.
- This is a global minor mode. If called interactively, toggle the
- ‘Minibuffer-Regexp mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'minibuffer-regexp-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode nerd-icons-completion-mode
- Nerd-Icons-Completion minor mode (no indicator):
- Add icons to completion candidates.
- This is a global minor mode. If called interactively, toggle the
- ‘Nerd-Icons-Completion mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'nerd-icons-completion-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode pixel-scroll-precision-mode
- Pixel-Scroll-Precision minor mode (no indicator):
- Toggle pixel scrolling.
- When enabled, this minor mode allows you to scroll the display
- precisely, according to the turning of the mouse wheel.
- This is a global minor mode. If called interactively, toggle the
- ‘Pixel-Scroll-Precision mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'pixel-scroll-precision-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode pulsar-global-mode
- Pulsar-Global minor mode (no indicator):
- Toggle Pulsar mode in all buffers.
- With prefix ARG, enable Pulsar-Global mode if ARG is positive;
- otherwise, disable it.
- If called from Lisp, toggle the mode if ARG is ‘toggle’.
- Enable the mode if ARG is nil, omitted, or is a positive number.
- Disable the mode if ARG is a negative number.
- Pulsar mode is enabled in all buffers where ‘pulsar--on’ would do it.
- See ‘pulsar-mode’ for more information on Pulsar mode.
- Global minor mode recentf-mode
- Recentf minor mode (no indicator):
- Toggle keeping track of opened files (Recentf mode).
- This mode maintains a list of recently opened files and makes it
- easy to visit them. The recent files list is automatically saved
- across Emacs sessions.
- You can use ‘recentf-open’ or ‘recentf-open-files’ to visit
- files.
- When Recentf mode is enabled, a "Open Recent" submenu is
- displayed in the "File" menu, containing a list of files that
- were operated on recently, in the most-recently-used order.
- By default, only operations like opening a file, writing a buffer
- to a file, and killing a buffer is counted as "operating" on
- the file. If instead you want to prioritize files that appear in
- buffers you switch to a lot, you can say something like the following:
- (add-hook 'buffer-list-update-hook #'recentf-track-opened-file)
- This is a global minor mode. If called interactively, toggle the
- ‘Recentf mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'recentf-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode save-place-mode
- Save-Place minor mode (no indicator):
- Non-nil means automatically save place in each file.
- This means when you visit a file, point goes to the last place
- where it was when you previously visited the same file.
- This is a global minor mode. If called interactively, toggle the
- ‘Save-Place mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'save-place-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode savehist-mode
- Savehist minor mode (no indicator):
- Toggle saving of minibuffer history (Savehist mode).
- When Savehist mode is enabled, minibuffer history is saved
- to ‘savehist-file’ periodically and when exiting Emacs. When
- Savehist mode is enabled for the first time in an Emacs session,
- it loads the previous minibuffer histories from ‘savehist-file’.
- The variable ‘savehist-autosave-interval’ controls the
- periodicity of saving minibuffer histories.
- If ‘savehist-save-minibuffer-history’ is non-nil (the default),
- all recorded minibuffer histories will be saved. You can arrange
- for additional history variables to be saved and restored by
- customizing ‘savehist-additional-variables’, which by default is
- an empty list. For example, to save the history of commands
- invoked via M-x, add ‘command-history’ to the list in
- ‘savehist-additional-variables’.
- Alternatively, you could customize ‘savehist-save-minibuffer-history’
- to nil, and add to ‘savehist-additional-variables’ only those
- history variables you want to save.
- To ignore some history variables, add their symbols to the list
- in ‘savehist-ignored-variables’.
- This mode should normally be turned on from your Emacs init file.
- Calling it at any other time replaces your current minibuffer
- histories, which is probably undesirable.
- This is a global minor mode. If called interactively, toggle the
- ‘Savehist mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'savehist-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode show-paren-mode
- Show-Paren minor mode (no indicator):
- Toggle visualization of matching parens (Show Paren mode).
- When enabled, any matching parenthesis is highlighted in ‘show-paren-style’
- after ‘show-paren-delay’ seconds of Emacs idle time.
- Also see ‘show-paren-predicate’, which controls which buffers
- this mode is enabled in.
- This is a global minor mode. To toggle the mode in a single buffer,
- use ‘show-paren-local-mode’.
- This is a global minor mode. If called interactively, toggle the
- ‘Show-Paren mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'show-paren-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode tooltip-mode
- Tooltip minor mode (no indicator):
- Toggle Tooltip mode.
- 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.
- This is a global minor mode. If called interactively, toggle the
- ‘Tooltip mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'tooltip-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode transient-mark-mode
- Transient-Mark minor mode (no indicator):
- Toggle Transient Mark mode.
- 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" after certain non-motion
- commands, including those that change the text in the buffer, and
- during shift or mouse selection by any unshifted cursor motion
- command (see Info node ‘Shift Selection’ for more details).
- 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-x query-replace, C-M-%, M-x ispell, and C-x u.
- To see the documentation of commands that are sensitive to the
- Transient Mark mode, invoke C-h d and type "transient"
- or "mark.*active" at the prompt.
- This is a global minor mode. If called interactively, toggle the
- ‘Transient-Mark mode’ mode. If the prefix argument is positive, enable
- the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'transient-mark-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode vertico-mode
- Vertico minor mode (no indicator):
- VERTical Interactive COmpletion.
- This is a global minor mode. If called interactively, toggle the
- ‘Vertico mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'vertico-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode vertico-posframe-mode
- Vertico-Posframe minor mode (no indicator):
- Display Vertico in posframe instead of the minibuffer.
- This is a global minor mode. If called interactively, toggle the
- ‘Vertico-Posframe mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'vertico-posframe-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode which-key-mode
- Which-Key minor mode (indicator WK):
- Toggle ‘which-key-mode’.
- ‘which-key’ is a minor mode that displays the key bindings following
- your currently entered incomplete command (a prefix) in a popup.
- For example, after enabling the minor mode, if you enter C-x and
- wait for one second (by default), the minibuffer will expand with all
- available key bindings that follow C-x (or as many as space allows
- given your settings).
- This is a global minor mode. If called interactively, toggle the
- ‘Which-Key mode’ mode. If the prefix argument is positive, enable the
- mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'which-key-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- Global minor mode which-key-posframe-mode
- Which-Key-Posframe minor mode (no indicator):
- Toggle Which-Key-Posframe mode on or off.
- This is a global minor mode. If called interactively, toggle the
- ‘Which-Key-Posframe mode’ mode. If the prefix argument is positive,
- enable the mode, and if it is zero or negative, disable the mode.
- If called from Lisp, toggle the mode if ARG is ‘toggle’. Enable the
- mode if ARG is nil, omitted, or is a positive number. Disable the mode
- if ARG is a negative number.
- To check whether the minor mode is enabled in the current buffer,
- evaluate ‘(default-value 'which-key-posframe-mode)’.
- The mode’s hook is called both when the mode is enabled and when it is
- disabled.
- [back]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement