⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 generic-x.el

📁 windows版本的emacs
💻 EL
📖 第 1 页 / 共 3 页
字号:
  "Mode for JavaScript files.");; VRML files(define-generic-mode 'vrml-generic-mode  (list ?#)  (list   "DEF"   "NULL"   "USE"   "Viewpoint"   "ambientIntensity"   "appearance"   "children"   "color"   "coord"   "coordIndex"   "creaseAngle"   "diffuseColor"   "emissiveColor"   "fieldOfView"   "geometry"   "info"   "material"   "normal"   "orientation"   "position"   "shininess"   "specularColor"   "texCoord"   "texture"   "textureTransform"   "title"   "transparency"   "type"   )  (list   (list "USE\\s-+\\([-A-Za-z0-9_]+\\)"	 '(1 font-lock-constant-face))   (list "DEF\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([A-Za-z0-9]+\\)\\s-*{"	 '(1 font-lock-type-face)	 '(2 font-lock-constant-face))   (list "^\\s-*\\([-A-Za-z0-9_]+\\)\\s-*{"	 '(1 font-lock-function-name-face))   (list    "^\\s-*\\(geometry\\|appearance\\|material\\)\\s-+\\([-A-Za-z0-9_]+\\)"    '(2 font-lock-variable-name-face))   )  (list "\\.wrl\\'")  (list   (function    (lambda ()      (setq imenu-generic-expression	    '((nil "^\\([A-Za-z0-9_]+\\)\\s-*{" 1)	      ("*Definitions*"	       "DEF\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([A-Za-z0-9]+\\)\\s-*{"	       1)))      )))  "Generic Mode for VRML files.");; Java Manifests(define-generic-mode 'java-manifest-generic-mode  (list ?#)  (list   "Name"   "Digest-Algorithms"   "Manifest-Version"   "Required-Version"   "Signature-Version"   "Magic"   "Java-Bean"   "Depends-On"   )  '(("^Name:\\s-+\\([^\n\r]*\\)$"     (1 font-lock-variable-name-face))    ("^\\(Manifest\\|Required\\|Signature\\)-Version:\\s-+\\([^\n\r]*\\)$"     (2 font-lock-constant-face))    )  (list "[mM][aA][nN][iI][fF][eE][sS][tT]\\.[mM][fF]\\'")  nil  "Mode for Java Manifest files");; Java properties files(define-generic-mode 'java-properties-generic-mode  (list ?! ?#)  nil  (let ((java-properties-key	 "\\(\\([-A-Za-z0-9_\\./]\\|\\(\\\\[ =:]\\)\\)+\\)")	(java-properties-value	 "\\([^\r\n]*\\)")	)    ;; Property and value can be separated in a number of different ways:    ;;   * whitespace    ;;   * an equal sign    ;;   * a colon    (mapcar     (function      (lambda (elt)	(list	 (concat "^" java-properties-key elt java-properties-value "$")	 '(1 font-lock-constant-face)	 '(4 font-lock-variable-name-face)	 )))     ;; These are the separators     (list ":\\s-*" "\\s-+" "\\s-*=\\s-*")     )    )  nil  (list   (function    (lambda ()      (setq imenu-generic-expression	    '((nil "^\\([^#! \t\n\r=:]+\\)" 1)))      )))  "Mode for Java properties files.");; C shell alias definitions(and (memq 'alias-generic-mode generic-extras-enable-list)(define-generic-mode 'alias-generic-mode  (list ?#)  (list "alias" "unalias")  '(("^alias\\s-+\\([-A-Za-z0-9_]+\\)\\s-+"     (1 font-lock-variable-name-face))    ("^unalias\\s-+\\([-A-Za-z0-9_]+\\)\\s-*$"     (1 font-lock-variable-name-face))    )  (list "alias\\'")  (list   (function    (lambda ()      (setq imenu-generic-expression	    '((nil "^\\(alias\\|unalias\\)\\s-+\\([-a-zA-Z0-9_]+\\)" 2)))      )))  "Mode for C Shell alias files."));;; Windows RC files;; Contributed by ACorreir@pervasive-sw.com (Alfred Correira)(and (memq 'rc-generic-mode generic-extras-enable-list)(define-generic-mode 'rc-generic-mode;;   (list ?\/)   (list "//")   '("ACCELERATORS"     "AUTO3STATE"     "AUTOCHECKBOX"     "AUTORADIOBUTTON"     "BITMAP"     "BOTTOMMARGIN"     "BUTTON"     "CAPTION"     "CHARACTERISTICS"     "CHECKBOX"     "CLASS"     "COMBOBOX"     "CONTROL"     "CTEXT"     "CURSOR"     "DEFPUSHBUTTON"     "DESIGNINFO"     "DIALOG"     "DISCARDABLE"     "EDITTEXT"     "EXSTYLE"     "FONT"     "GROUPBOX"     "GUIDELINES"     "ICON"     "LANGUAGE"     "LEFTMARGIN"     "LISTBOX"     "LTEXT"     "MENUITEM SEPARATOR"     "MENUITEM"     "MENU"     "MOVEABLE"     "POPUP"     "PRELOAD"     "PURE"     "PUSHBOX"     "PUSHBUTTON"     "RADIOBUTTON"     "RCDATA"     "RIGHTMARGIN"     "RTEXT"     "SCROLLBAR"     "SEPARATOR"     "STATE3"     "STRINGTABLE"     "STYLE"     "TEXTINCLUDE"     "TOOLBAR"     "TOPMARGIN"     "VERSIONINFO"     "VERSION"     )   ;; the choice of what tokens go where is somewhat arbitrary,   ;; as is the choice of which value tokens are included, as   ;; the choice of face for each token group   (list    (eval-when-compile      (generic-make-keywords-list       (list	"FILEFLAGSMASK"	"FILEFLAGS"	"FILEOS"	"FILESUBTYPE"	"FILETYPE"	"FILEVERSION"	"PRODUCTVERSION"	) 'font-lock-type-face))    (eval-when-compile      (generic-make-keywords-list       (list	"BEGIN"	"BLOCK"	"END"	"VALUE"	) 'font-lock-function-name-face))    '("^#[ \t]*include[ \t]+\\(<[^>\"\n]+>\\)" 1 font-lock-string-face)    '("^#[ \t]*define[ \t]+\\(\\sw+\\)("       1 font-lock-function-name-face)    '("^#[ \t]*\\(elif\\|if\\)\\>"      ("\\<\\(defined\\)\\>[ \t]*(?\\(\\sw+\\)?" nil nil       (1 font-lock-constant-face) (2 font-lock-variable-name-face nil t)))    '("^#[ \t]*\\(\\sw+\\)\\>[ \t]*\\(\\sw+\\)?"      (1 font-lock-constant-face) (2 font-lock-variable-name-face nil t)))   (list "\\.[rR][cC]$")   nil   "Generic mode for MS-Windows Resource files."));; InstallShield RUL files;; Contributed by  Alfred.Correira@Pervasive.Com(and(memq 'rul-generic-mode generic-extras-enable-list);;; build the regexp strings using regexp-opt(defvar installshield-statement-keyword-list  (list   "abort"   "begin"   "call"   "case"   "declare"   "default"   "downto"   "elseif"   "else"   "endfor"   "endif"   "endswitch"   "endwhile"   "end"   "exit"   "external"   "for"   "function"   ;; "goto" -- handled elsewhere   "if"   "program"   "prototype"   "repeat"   "return"   "step"   "switch"   "then"   "to"   "typedef"   "until"   "void"   "while"   )  "Statement keywords used in InstallShield 3 and 5.")(defvar installshield-system-functions-list  (list   "AddFolderIcon"   "AddProfString"   "AddressString"   "AppCommand"   "AskDestPath"   "AskOptions"   "AskPath"   "AskText"   "AskYesNo"   "BatchDeleteEx"   "BatchFileLoad"   "BatchFileSave"   "BatchFind"   "BatchGetFileName"   "BatchMoveEx"   "BatchSetFileName"   "ChangeDirectory"   "CloseFile"   "CmdGetHwndDlg"   "ComponentAddItem"                ; differs between IS3 and IS5   "ComponentCompareSizeRequired"    ; IS5 only   "ComponentDialog"   "ComponentError"                  ; IS5 only   "ComponentFileEnum"               ; IS5 only   "ComponentFileInfo"               ; IS5 only   "ComponentFilterLanguage"         ; IS5 only   "ComponentFilterOS"               ; IS5 only   "ComponentGetData"                ; IS5 only   "ComponentGetItemInfo"            ; IS3 only   "ComponentGetItemSize"            ; differs between IS3 and IS5   "ComponentIsItemSelected"         ; differs between IS3 and IS5   "ComponentListItems"   "ComponentMoveData"               ; IS5 only   "ComponentSelectItem"             ; differs between IS3 and IS5   "ComponentSetData"                ; IS5 only   "ComponentSetItemInfo"            ; IS3 only   "ComponentSetTarget"              ; IS5 only   "ComponentSetupTypeEnum"          ; IS5 only   "ComponentSetupTypeGetData"       ; IS5 only   "ComponentSetupTypeSet"           ; IS5 only   "ComponentTotalSize"   "ComponentValidate"               ; IS5 only   "CompressAdd"                     ; IS3 only   "CompressDel"                     ; IS3 only   "CompressEnum"                    ; IS3 only   "CompressGet"                     ; IS3 only   "CompressInfo"                    ; IS3 only   "CopyFile"   "CreateDir"   "CreateFile"   "CreateProgramFolder"   "DeinstallSetReference"           ; IS5 only   "DeinstallStart"   "Delay"   "DeleteDir"   "DeleteFile"   "DialogSetInfo"   "Disable"   "DoInstall"   "Do"   "Enable"   "EnterDisk"   "ExistsDir"   "ExistsDisk"   "ExitProgMan"   "EzBatchAddPath"   "EzBatchAddString"   "EzBatchReplace"   "EzConfigAddDriver"   "EzConfigAddString"   "EzConfigGetValue"   "EzConfigSetValue"   "EzDefineDialog"   "FileCompare"   "FileDeleteLine"   "FileGrep"   "FileInsertLine"   "FileSetBeginDefine"              ; IS3 only   "FileSetEndDefine"                ; IS3 only   "FileSetPerformEz"                ; IS3 only   "FileSetPerform"                  ; IS3 only   "FileSetReset"                    ; IS3 only   "FileSetRoot"                     ; IS3 only   "FindAllDirs"   "FindAllFiles"   "FindFile"   "FindWindow"   "GetDiskSpace"   "GetDisk"   "GetEnvVar"   "GetExtents"   "GetFileInfo"   "GetLine"   "GetProfInt"   "GetProfString"   "GetSystemInfo"   "GetValidDrivesList"   "GetVersion"   "GetWindowHandle"   "InstallationInfo"   "Is"   "LaunchApp"   "LaunchAppAndWait"   "ListAddItem"   "ListAddString"   "ListCount"   "ListCreate"   "ListDestroy"   "ListFindItem"   "ListFindString"   "ListGetFirstItem"   "ListGetFirstString"   "ListGetNextItem"   "ListGetNextString"   "ListReadFromFile"   "ListSetCurrentItem"   "ListSetNextItem"   "ListSetNextString"   "ListSetIndex"   "ListWriteToFile"   "LongPathToQuote"   "LongPathToShortPath"   "MessageBox"   "NumToStr"   "OpenFileMode"   "OpenFile"   "ParsePath"   "PathAdd"   "PathDelete"   "PathFind"   "PathGet"   "PathMove"   "PathSet"   "Path"   "PlaceBitmap"   "PlaceWindow"   "PlayMMedia"                      ; IS5 only   "ProgDefGroupType"   "RegDBCreateKeyEx"   "RegDBDeleteValue"   "RegDBGetItem"   "RegDBKeyExist"   "RegDBSetItem"   "RegDBGetKeyValueEx"   "RegDBSetKeyValueEx"   "RegDBSetDefaultRoot"   "RenameFile"   "ReplaceFolderIcon"   "ReplaceProfString"   "SdAskDestPath"   "SdAskOptions"   "SdAskOptionsList"   "SdBitmap"   "SdCloseDlg"   "SdComponentAdvCheckSpace"   "SdComponentAdvInit"   "SdComponentAdvUpdateSpace"   "SdComponentDialog"   "SdComponentDialog2"   "SdComponentDialogAdv"   "SdComponentDialogEx"   "SdComponentDlgCheckSpace"   "SdComponentMult"   "SdConfirmNewDir"   "SdConfirmRegistration"   "SdDiskSpace"   "SdDisplayTopics"   "SdDoStdButton"   "SdEnablement"   "SdError"   "SdFinish"   "SdFinishInit32"   "SdFinishReboot"   "SdGeneralInit"   "SdGetItemName"   "SdGetTextExtent"   "SdGetUserCompanyInfo"   "SdInit"   "SdIsShellExplorer"   "SdIsStdButton"   "SdLicense"   "SdMakeName"   "SdOptionInit"   "SdOptionSetState"   "SdOptionsButtons"   "SdOptionsButtonsInit"   "SdPlugInProductName"   "SdProductName"   "SdRegEnableButton"   "SdRegExEnableButton"   "SdRegisterUser"   "SdRegisterUserEx"   "SdRemoveEndSpace"   "SdSelectFolder"   "SdSetSequentialItems"   "SdSetStatic"   "SdSetupTypeEx"                   ; IS5 only   "SdSetupType"   "SdShowAnyDialog"   "SdShowDlgEdit1"   "SdShowDlgEdit2"   "SdShowDlgEdit3"   "SdShowFileMods"   "SdShowInfoList"   "SdShowMsg"   "SdStartCopy"   "SdUnInit"   "SdUpdateComponentSelection"   "SdWelcome"   "SendMessage"   "SetColor"   "SetFont"   "SetDialogTitle"   "SetDisplayEffect"                ; IS5 only   "SetFileInfo"   "SetForegroundWindow"   "SetStatusWindow"   "SetTitle"   "SetupType"   "ShowProgramFolder"   "Split"                           ; IS3 only   "SprintfBox"   "Sprintf"   "StatusUpdate"   "StrCompare"   "StrFind"   "StrGetTokens"   "StrLength"   "StrRemoveLastSlash"   "StrToLower"   "StrToNum"   "StrToUpper"   "StrSub"   "VarRestore"   "VarSave"   "VerCompare"   "VerGetFileVersion"   "WaitOnDialog"   "Welcome"   "WriteLine"   "WriteProfString"   "XCopyFile"   )  "System functions defined in InstallShield 3 and 5.")(defvar installshield-system-variables-list  (list   "BATCH_INSTALL"   "CMDLINE"   "COMMONFILES"   "CORECOMPONENTHANDLING"   "DIALOGCACHE"   "ERRORFILENAME"   "FOLDER_DESKTOP"   "FOLDER_PROGRAMS"   "FOLDER_STARTMENU"   "FOLDER_STARTUP"   "INFOFILENAME"   "ISRES"   "ISUSER"   "ISVERSION"   "MEDIA"   "MODE"   "PROGRAMFILES"   "SELECTED_LANGUAGE"   "SRCDIR"   "SRCDISK"   "SUPPORTDIR"   "TARGETDIR"   "TARGETDISK"   "UNINST"   "WINDIR"   "WINDISK"   "WINMAJOR"   "WINSYSDIR"   "WINSYSDISK"   )  "System variables used in InstallShield 3 and 5.")(defvar installshield-types-list  (list   "BOOL"   "BYREF"   "CHAR"   "HIWORD"   "HWND"   "INT"   "LIST"   "LONG"   "LOWORD"   "LPSTR"   "NUMBER"   "NUMBERLIST"   "POINTER"   "QUAD"   "RGB"   "SHORT"   "STRINGLIST"   "STRING"   )  "Type keywords used in InstallShield 3 and 5.");;; some might want to skip highlighting these to improve performance(defvar installshield-funarg-constants-list  (list   "AFTER"   "APPEND"   "ALLCONTENTS"   "BACKBUTTON"   "BACKGROUNDCAPTION"   "BACKGROUND"   "BACK"   "BASEMEMORY"   "BEFORE"   "BIOS"   "BITMAPICON"   "BK_BLUE"   "BK_GREEN"   "BK_RED"   "BLUE"   "BOOTUPDRIVE"   "CANCEL"   "CDROM_DRIVE"   "CDROM"   "CHECKBOX95"   "CHECKBOX"   "CHECKLINE"   "CHECKMARK"   "COLORS"   "COMMANDEX"   "COMMAND"   "COMP_NORMAL"   "COMP_UPDATE_DATE"   "COMP_UPDATE_SAME"   "COMP_UPDATE_VERSION"   "COMPACT"   "CONTINUE"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -