📄 loaddefs.el
字号:
;; Define standard autoloads and keys of other files, for Emacs.;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc.;; This file is part of GNU Emacs.;; GNU Emacs is free software; you can redistribute it and/or modify;; it under the terms of the GNU General Public License as published by;; the Free Software Foundation; either version 1, or (at your option);; any later version.;; GNU Emacs is distributed in the hope that it will be useful,;; but WITHOUT ANY WARRANTY; without even the implied warranty of;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the;; GNU General Public License for more details.;; You should have received a copy of the GNU General Public License;; along with GNU Emacs; see the file COPYING. If not, write to;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.;;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;;; Special formatting conventions are used in this file!;;;;;; a backslash-newline is used at the beginning of a documentation string;;; when that string should be stored in the file etc/DOCnnn, not in core.;;;;;; Such strings read into Lisp as numbers (during the pure-loading phase).;;;;;; But you must obey certain rules to make sure the string is understood;;; and goes into etc/DOCnnn properly. Otherwise, the string will not go;;; anywhere!;;;;;; The doc string must appear in the standard place in a call to;;; defun, autoload, defvar or defconst. No Lisp macros are recognized.;;; The open-paren starting the definition must appear in column 0.;;;;;; In defvar and defconst, there is an additional rule:;;; The double-quote that starts the string must be on the same;;; line as the defvar or defconst.;;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!;; Know which function the debugger is!(setq debugger 'debug)(defconst mode-line-buffer-identification (purecopy '("Emacs: %17b")) "\Mode-line control for identifying the buffer being displayed.Its default value is \"Emacs: %17b\". Major modes that edit thingsother than ordinary files may change this (e.g. Info, Dired,...)")(make-variable-buffer-local 'mode-line-buffer-identification)(defconst mode-line-process nil "\Mode-line control for displaying info on process status.Normally nil in most modes, since there is no process to display.")(make-variable-buffer-local 'mode-line-process)(defconst mode-line-modified (purecopy '("--%1*%1*-")) "\Mode-line control for displaying whether current buffer is modified.")(make-variable-buffer-local 'mode-line-modified)(setq-default mode-line-format (list (purecopy "") 'mode-line-modified 'mode-line-buffer-identification (purecopy " ") 'global-mode-string (purecopy " %[(") 'mode-name 'minor-mode-alist "%n" 'mode-line-process (purecopy ")%]----") (purecopy '(-3 . "%p")) (purecopy "-%-")))(defvar minor-mode-alist nil "\Alist saying how to show minor modes in the mode line.Each element looks like (VARIABLE STRING);STRING is included in the mode line iff VARIABLE's value is non-nil.")(setq minor-mode-alist (mapcar 'purecopy '((abbrev-mode " Abbrev") (overwrite-mode " Ovwrt") (auto-fill-hook " Fill") ;; not really a minor mode... (defining-kbd-macro " Def"))))(defconst function-keymap (make-sparse-keymap) "\Keymap containing definitions of keypad and function keys.");; These variables are used by autoloadable packages.;; They are defined here so that they do not get overridden;; by the loading of those packages.(defconst paragraph-start "^[ \t\n\f]" "\*Regexp for beginning of a line that starts OR separates paragraphs.")(defconst paragraph-separate "^[ \t\f]*$" "\*Regexp for beginning of a line that separates paragraphs.If you change this, you may have to change paragraph-start also.")(defconst sentence-end (purecopy "[.?!][]\"')}]*\\($\\|\t\\| \\)[ \t\n]*") "\*Regexp describing the end of a sentence.All paragraph boundaries also end sentences, regardless.")(defconst page-delimiter "^\014" "\*Regexp describing line-beginnings that separate pages.")(defconst case-replace t "\*Non-nil means query-replace should preserve case in replacements.");; indent.el may not be autoloading, but it still loses;; if lisp-mode is ever called before this defvar is done.(defvar indent-line-function 'indent-to-left-margin "\Function to indent current line.")(defconst only-global-abbrevs nil "\*t means user plans to use global abbrevs only.Makes the commands to define mode-specific abbrevs define global ones instead.");; Names in directory that end in one of these;; are ignored in completion,;; making it more likely you will get a unique match.(setq completion-ignored-extensions (if (eq system-type 'vax-vms) '(".obj" ".elc" ".exe" ".bin" ".lbin" ".dvi" ".toc" ".log" ".aux" ".lof" ".brn" ".rnt" ".mem" ".lni" ".lis" ".olb" ".tlb" ".mlb" ".hlb" ".glo" ".idx" ".lot") '(".o" ".elc" "~" ".bin" ".lbin" ".fasl" ".dvi" ".toc" ".log" ".aux" ".lof" ".blg" ".bbl" ".glo" ".idx" ".lot")))(defvar compile-command "make -k" "\*Last shell command used to do a compilation; default for next compilation.")(defvar dired-listing-switches "-al" "\*Switches passed to ls for Dired. MUST contain the `l' option.MUST NOT contain the `F, `s' or `i'' option.")(defconst lpr-switches nil "\*List of strings to pass as extra switch args to lpr when it is invoked.")(defvar tags-file-name nil "\*File name of tag table.To switch to a new tag table, setting this variable is sufficient.Use the `etags' program to make a tag table file.")(defconst shell-prompt-pattern "^[^#$%>]*[#$%>] *" "\*Regexp used by Newline command in shell mode to match subshell prompts.Anything from beginning of line up to the end of what this pattern matchesis deemed to be prompt, and is not reexecuted.")(defconst ledit-save-files t "\*Non-nil means Ledit should save files before transferring to Lisp.")(defconst ledit-go-to-lisp-string "%?lisp" "\*Shell commands to execute to resume Lisp job.")(defconst ledit-go-to-liszt-string "%?liszt" "\*Shell commands to execute to resume Lisp compiler job.")(defconst display-time-day-and-date nil "\*Non-nil means M-x display-time should display day and date as well as time.");;; Determine mode according to filename(defvar auto-mode-alist nil "\Alist of filename patterns vs corresponding major mode functions.Each element looks like (REGEXP . FUNCTION).Visiting a file whose name matches REGEXP causes FUNCTION to be called.")(setq auto-mode-alist (mapcar 'purecopy '(("\\.text$" . text-mode) ("\\.c$" . c-mode) ("\\.h$" . c-mode) ("\\.tex$" . TeX-mode) ("\\.el$" . emacs-lisp-mode) ("\\.scm$" . scheme-mode) ("\\.l$" . lisp-mode) ("\\.lisp$" . lisp-mode) ("\\.f$" . fortran-mode) ("\\.mss$" . scribe-mode) ("\\.pl$" . prolog-mode);;; Less common extensions come here;;; so more common ones above are found faster. ("\\.TeX$" . TeX-mode) ("\\.sty$" . LaTeX-mode) ("\\.bbl$" . LaTeX-mode) ("\\.bib$" . text-mode) ("\\.article$" . text-mode) ("\\.letter$" . text-mode) ("\\.texinfo$" . texinfo-mode) ("\\.lsp$" . lisp-mode) ("\\.prolog$" . prolog-mode) ;; Mailer puts message to be edited in /tmp/Re.... or Message ("^/tmp/Re" . text-mode) ;; some news reader is reported to use this ("^/tmp/fol/" . text-mode) ("/Message[0-9]*$" . text-mode) ("\\.y$" . c-mode) ("\\.cc$" . c-mode) ("\\.scm.[0-9]*$" . scheme-mode) ;; .emacs following a directory delimiter ;; in either Unix or VMS syntax. ("[]>:/]\\..*emacs" . emacs-lisp-mode) ("\\.ml$" . lisp-mode))))(make-variable-buffer-local 'indent-tabs-mode)(defvar ctl-x-4-map (make-keymap) "\Keymap for subcommands of C-x 4");; Reduce total amount of space we must allocate during this function;; that we will not need to keep permanently.(garbage-collect);; Autoload random libraries.;; Alphabetical order by library name.(autoload 'add-change-log-entry "add-log" "\Find change log file and add an entry for today.First arg (interactive prefix) non-nil means prompt for user name and site.Second arg is file name of change log.Optional third arg OTHER-WINDOW non-nil means visit in other window." t)(define-key ctl-x-4-map "a" 'add-change-log-entry-other-window)(autoload 'add-change-log-entry-other-window "add-log" "\Find change log file in other window, and add an entry for today." t)(autoload '\` "backquote" "\\(` FORM) Expands to a form that will generate FORM.FORM is `almost quoted' -- see backquote.el for a description." nil t)(autoload 'byte-compile-file "bytecomp" "\Compile a file of Lisp code named FILENAME into a file of byte code.The output file's name is made by appending \"c\" to the end of FILENAME." t)(autoload 'byte-recompile-directory "bytecomp" "\Recompile every .el file in DIRECTORY that needs recompilation.This is if a .elc file exists but is older than the .el file.If the .elc file does not exist, offer to compile the .el fileonly if a prefix argument has been specified." t)(autoload 'batch-byte-compile "bytecomp" "\Runs byte-compile-file on the files remaining on the command line.Must be used only with -batch, and kills emacs on completion.Each file will be processed even if an error occurred previously.For example, invoke \"emacs -batch -f batch-byte-compile $emacs/ ~/*.el\"" nil)(autoload 'calendar "cal" "\Display three-month calendar in another window.The three months appear side by side, with the current month in the middlesurrounded by the previous and next months. The cursor is put on today's date.An optional prefix argument ARG causes the calendar displayed to beARG months in the future if ARG is positive or in the past if ARG isnegative; in this case the cursor goes on the first day of the month.The Gregorian calendar is assumed.After preparing the calendar window, the hooks calendar-hook are runwhen the calendar is for the current month--that is, the was no prefixargument. If the calendar is for a future or past month--that is, therewas a prefix argument--the hooks offset-calendar-hook are run. Thus, forexample, setting calendar-hooks to 'star-date will cause today's date to bereplaced by asterisks to highlight it in the window." t)(autoload 'list-command-history "chistory" "\List history of commands typed to minibuffer.The number of commands listed is controlled by list-command-history-max.Calls value of list-command-history-filter (if non-nil) on each historyelement to judge if that element should be excluded from the list.The buffer is left in Command History mode." t)(autoload 'command-history-mode "chistory" "\Major mode for examining commands from command-history.The number of commands listed is controlled by list-command-history-max.The command history is filtered by list-command-history-filter if non-nil.Like Emacs-Lisp Mode except that characters do not insert themselves andDigits provide prefix arguments. Tab does not indent.\\{command-history-map}Calls the value of command-history-hook if that is non-nilThe Command History listing is recomputed each time this mode isinvoked." t)(autoload 'repeat-matching-complex-command "chistory" "\Edit and re-evaluate complex command with name matching PATTERN.Matching occurrences are displayed, most recent first, until youselect a form for evaluation. If PATTERN is empty (or nil), every formin the command history is offered. The form is placed in the minibufferfor editing and the result is evaluated." t)(autoload 'common-lisp-indent-hook "cl-indent")(autoload 'compare-windows "compare-w" "\Compare text in current window with text in next window.Compares the text starting at point in each window,moving over text in each one as far as they match." t)(autoload 'compile "compile" "\Compile the program including the current buffer. Default: run `make'.Runs COMMAND, a shell command, in a separate process asynchronouslywith output going to the buffer *compilation*.You can then use the command \\[next-error] to find the next error messageand move to the source code that caused it." t)(autoload 'grep "compile" "\Run grep, with user-specified args, and collect output in a buffer.While grep runs asynchronously, you can use the \\[next-error] commandto find the text that grep hits refer to." t)(define-key ctl-x-map "`" 'next-error)(autoload 'next-error "compile" "\Visit next compilation error message and corresponding source code.This operates on the output from the \\[compile] command.If all preparsed error messages have been processed,the error message buffer is checked for new ones.A non-nil argument (prefix arg, if interactive)means reparse the error message buffer and start at the first error." t)(define-key esc-map "/" 'dabbrev-expand)(autoload 'dabbrev-expand "dabbrev" "\Expand previous word \"dynamically\".Expands to the most recent, preceding word for which this is a prefix.If no suitable preceding word is found, words following point are considered.A positive prefix argument, N, says to take the Nth backward DISTINCT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -