1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00

Specify :group for all generic modes.

This commit is contained in:
Lute Kamstra 2005-04-03 20:52:46 +00:00
parent c85465f9a0
commit 0c0a9c995c
2 changed files with 68 additions and 33 deletions

View File

@ -8,6 +8,8 @@
keywords for defcustom.
(default-generic-mode): Specify :group.
* generic-x.el: Specify :group for all generic modes.
* desktop.el (desktop-no-desktop-file-hook)
(desktop-after-read-hook): Fix docstring.

View File

@ -170,7 +170,8 @@ generic-x to enable the specified modes."
'((nil "^\\([-A-Za-z0-9_]+\\)" 1)
("*Directories*" "^\\s-*<Directory\\s-*\\([^>]+\\)>" 1)
("*Locations*" "^\\s-*<Location\\s-*\\([^>]+\\)>" 1))))))
"Generic mode for Apache or HTTPD configuration files."))
"Generic mode for Apache or HTTPD configuration files."
:group 'generic-x))
(when (memq 'apache-log-generic-mode generic-extras-enable-list)
@ -183,7 +184,8 @@ generic-x to enable the specified modes."
(2 font-lock-variable-name-face)))
'("access_log\\'")
nil
"Mode for Apache log files"))
"Mode for Apache log files"
:group 'generic-x))
;;; Samba
(when (memq 'samba-generic-mode generic-extras-enable-list)
@ -197,7 +199,8 @@ generic-x to enable the specified modes."
(2 font-lock-type-face)))
'("smb\\.conf\\'")
'(generic-bracket-support)
"Generic mode for Samba configuration files."))
"Generic mode for Samba configuration files."
:group 'generic-x))
;;; Fvwm
;; This is pretty basic. Also, modes for other window managers could
@ -222,7 +225,8 @@ generic-x to enable the specified modes."
nil
'("\\.fvwmrc\\'" "\\.fvwm2rc\\'")
nil
"Generic mode for FVWM configuration files."))
"Generic mode for FVWM configuration files."
:group 'generic-x))
;;; X Resource
;; I'm pretty sure I've seen an actual mode to do this, but I don't
@ -235,7 +239,8 @@ generic-x to enable the specified modes."
'(("^\\([^:\n]+:\\)" 1 font-lock-variable-name-face))
'("\\.Xdefaults\\'" "\\.Xresources\\'" "\\.Xenvironment\\'" "\\.ad\\'")
nil
"Generic mode for X Resource configuration files."))
"Generic mode for X Resource configuration files."
:group 'generic-x))
;;; Hosts
(when (memq 'hosts-generic-mode generic-extras-enable-list)
@ -246,7 +251,8 @@ generic-x to enable the specified modes."
'(("\\([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\\)" 1 font-lock-constant-face))
'("[hH][oO][sS][tT][sS]\\'")
nil
"Generic mode for HOSTS files."))
"Generic mode for HOSTS files."
:group 'generic-x))
;;; Windows INF files
(when (memq 'inf-generic-mode generic-extras-enable-list)
@ -257,7 +263,8 @@ generic-x to enable the specified modes."
'(("^\\(\\[.*\\]\\)" 1 font-lock-constant-face))
'("\\.[iI][nN][fF]\\'")
'(generic-bracket-support)
"Generic mode for MS-Windows INF files."))
"Generic mode for MS-Windows INF files."
:group 'generic-x))
;;; Windows INI files
;; Should define escape character as well!
@ -277,7 +284,8 @@ generic-x to enable the specified modes."
(setq imenu-generic-expression
'((nil "^\\[\\(.*\\)\\]" 1)
("*Variables*" "^\\s-*\\([^=]+\\)\\s-*=" 1))))))
"Generic mode for MS-Windows INI files."))
"Generic mode for MS-Windows INI files."
:group 'generic-x))
;;; Windows REG files
;;; Unfortunately, Windows 95 and Windows NT have different REG file syntax!
@ -294,7 +302,8 @@ generic-x to enable the specified modes."
(lambda ()
(setq imenu-generic-expression
'((nil "^\\s-*\\(.*\\)\\s-*=" 1))))))
"Generic mode for MS-Windows Registry files."))
"Generic mode for MS-Windows Registry files."
:group 'generic-x))
;;; DOS/Windows BAT files
(when (memq 'bat-generic-mode generic-extras-enable-list)
@ -368,7 +377,8 @@ generic-x to enable the specified modes."
"\\`[cC][oO][nN][fF][iI][gG]\\."
"\\`[aA][uU][tT][oO][eE][xX][eE][cC]\\.")
'(generic-bat-mode-setup-function)
"Generic mode for MS-Windows BAT files.")
"Generic mode for MS-Windows BAT files."
:group 'generic-x)
(defvar bat-generic-mode-syntax-table nil
"Syntax table in use in bat-generic-mode buffers.")
@ -446,7 +456,8 @@ generic-x to enable the specified modes."
(lambda ()
(setq imenu-generic-expression
'((nil "\\s-/\\([^/]+\\)/[i, \t\n]" 1))))))
"Mode for Mailagent rules files."))
"Mode for Mailagent rules files."
:group 'generic-x))
;; Solaris/Sys V prototype files
(when (memq 'prototype-generic-mode generic-extras-enable-list)
@ -469,7 +480,8 @@ generic-x to enable the specified modes."
(2 font-lock-variable-name-face)))
'("prototype\\'")
nil
"Mode for Sys V prototype files."))
"Mode for Sys V prototype files."
:group 'generic-x))
;; Solaris/Sys V pkginfo files
(when (memq 'pkginfo-generic-mode generic-extras-enable-list)
@ -482,7 +494,8 @@ generic-x to enable the specified modes."
(2 font-lock-variable-name-face)))
'("pkginfo\\'")
nil
"Mode for Sys V pkginfo files."))
"Mode for Sys V pkginfo files."
:group 'generic-x))
;; Javascript mode
;; Includes extra keywords from Armando Singer [asinger@MAIL.COLGATE.EDU]
@ -559,7 +572,8 @@ generic-x to enable the specified modes."
(setq imenu-generic-expression
'((nil "^function\\s-+\\([A-Za-z0-9_]+\\)" 1)
("*Variables*" "^var\\s-+\\([A-Za-z0-9_]+\\)" 1))))))
"Mode for JavaScript files.")
"Mode for JavaScript files."
:group 'generic-x)
;; VRML files
(define-generic-mode vrml-generic-mode
@ -610,7 +624,8 @@ generic-x to enable the specified modes."
("*Definitions*"
"DEF\\s-+\\([-A-Za-z0-9_]+\\)\\s-+\\([A-Za-z0-9]+\\)\\s-*{"
1))))))
"Generic Mode for VRML files.")
"Generic Mode for VRML files."
:group 'generic-x)
;; Java Manifests
(define-generic-mode java-manifest-generic-mode
@ -629,7 +644,8 @@ generic-x to enable the specified modes."
(2 font-lock-constant-face)))
'("[mM][aA][nN][iI][fF][eE][sS][tT]\\.[mM][fF]\\'")
nil
"Mode for Java Manifest files")
"Mode for Java Manifest files"
:group 'generic-x)
;; Java properties files
(define-generic-mode java-properties-generic-mode
@ -659,7 +675,8 @@ generic-x to enable the specified modes."
(lambda ()
(setq imenu-generic-expression
'((nil "^\\([^#! \t\n\r=:]+\\)" 1))))))
"Mode for Java properties files.")
"Mode for Java properties files."
:group 'generic-x)
;; C shell alias definitions
(when (memq 'alias-generic-mode generic-extras-enable-list)
@ -677,7 +694,8 @@ generic-x to enable the specified modes."
(lambda ()
(setq imenu-generic-expression
'((nil "^\\(alias\\|unalias\\)\\s-+\\([-a-zA-Z0-9_]+\\)" 2))))))
"Mode for C Shell alias files."))
"Mode for C Shell alias files."
:group 'generic-x))
;;; Windows RC files
;; Contributed by ACorreir@pervasive-sw.com (Alfred Correira)
@ -769,7 +787,8 @@ generic-x to enable the specified modes."
(2 font-lock-variable-name-face nil t))))
'("\\.[rR][cC]$")
nil
"Generic mode for MS-Windows Resource files."))
"Generic mode for MS-Windows Resource files."
:group 'generic-x))
;; InstallShield RUL files
;; Contributed by Alfred.Correira@Pervasive.Com
@ -1389,7 +1408,8 @@ generic-x to enable the specified modes."
font-lock-variable-name-face "[^_]" "[^_]"))) ; is this face the best choice?
'("\\.[rR][uU][lL]$")
'(generic-rul-mode-setup-function)
"Generic mode for InstallShield RUL files.")
"Generic mode for InstallShield RUL files."
:group 'generic-x)
(define-skeleton rul-if
"Insert an if statement."
@ -1437,7 +1457,8 @@ generic-x to enable the specified modes."
(2 font-lock-variable-name-face)))
'("\\.mailrc\\'")
nil
"Mode for mailrc files.")
"Mode for mailrc files."
:group 'generic-x)
;; Inetd.conf
(when (memq 'inetd-conf-generic-mode generic-extras-enable-list)
@ -1457,7 +1478,8 @@ generic-x to enable the specified modes."
(function
(lambda ()
(setq imenu-generic-expression
'((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))))
'((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))
:group 'generic-x))
;; Services
(when (memq 'etc-services-generic-mode generic-extras-enable-list)
@ -1475,7 +1497,8 @@ generic-x to enable the specified modes."
(function
(lambda ()
(setq imenu-generic-expression
'((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))))
'((nil "^\\([-A-Za-z0-9_]+\\)" 1))))))
:group 'generic-x))
;; Password and Group files
(when (memq 'etc-passwd-generic-mode generic-extras-enable-list)
@ -1517,7 +1540,8 @@ generic-x to enable the specified modes."
(function
(lambda ()
(setq imenu-generic-expression
'((nil "^\\([-A-Za-z0-9_]+\\):" 1))))))))
'((nil "^\\([-A-Za-z0-9_]+\\):" 1))))))
:group 'generic-x))
;; Fstab
(when (memq 'etc-fstab-generic-mode generic-extras-enable-list)
@ -1567,7 +1591,8 @@ generic-x to enable the specified modes."
(function
(lambda ()
(setq imenu-generic-expression
'((nil "^\\([/-A-Za-z0-9_]+\\)\\s-+" 1))))))))
'((nil "^\\([/-A-Za-z0-9_]+\\)\\s-+" 1))))))
:group 'generic-x))
;; From Jacques Duthen <jacques.duthen@sncf.fr>
(eval-when-compile
@ -1609,7 +1634,8 @@ generic-x to enable the specified modes."
nil ;; no auto-mode-alist
;; '(show-tabs-generic-mode-hook-fun)
nil
"Generic mode to show tabs and trailing spaces")
"Generic mode to show tabs and trailing spaces"
:group 'generic-x)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; DNS modes
@ -1630,7 +1656,8 @@ generic-x to enable the specified modes."
;; List of additional automode-alist expressions
'("/etc/named.boot\\'")
;; List of set up functions to call
nil)
nil
:group 'generic-x)
(define-generic-mode named-database-generic-mode
;; List of comment characters
@ -1643,7 +1670,8 @@ generic-x to enable the specified modes."
;; List of additional automode-alist expressions
nil
;; List of set up functions to call
nil)
nil
:group 'generic-x)
(defvar named-database-time-string "%Y%m%d%H"
"Timestring for named serial numbers.")
@ -1663,7 +1691,8 @@ generic-x to enable the specified modes."
;; List of additional automode-alist expressions
'("/etc/resolv[e]?.conf\\'")
;; List of set up functions to call
nil)
nil
:group 'generic-x)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Modes for spice and common electrical engineering circuit netlist formats
@ -1705,7 +1734,8 @@ generic-x to enable the specified modes."
(function
(lambda()
(setq font-lock-defaults '(generic-font-lock-keywords nil t)))))
"Generic mode for SPICE circuit netlist files.")
"Generic mode for SPICE circuit netlist files."
:group 'generic-x)
(define-generic-mode ibis-generic-mode
'(?|)
@ -1714,7 +1744,8 @@ generic-x to enable the specified modes."
("\\(\\(_\\|\\w\\)+\\)\\s-*=" 1 font-lock-variable-name-face))
'("\\.[iI][bB][sS]\\'")
'(generic-bracket-support)
"Generic mode for IBIS circuit netlist files.")
"Generic mode for IBIS circuit netlist files."
:group 'generic-x)
(define-generic-mode astap-generic-mode
nil
@ -1749,7 +1780,8 @@ generic-x to enable the specified modes."
(function
(lambda()
(setq font-lock-defaults '(generic-font-lock-keywords nil t)))))
"Generic mode for ASTAP circuit netlist files.")
"Generic mode for ASTAP circuit netlist files."
:group 'generic-x)
(define-generic-mode etc-modules-conf-generic-mode
;; List of comment characters
@ -1791,7 +1823,8 @@ generic-x to enable the specified modes."
;; List of additional automode-alist expressions
'("/etc/modules.conf" "/etc/conf.modules")
;; List of set up functions to call
nil)
nil
:group 'generic-x)
(provide 'generic-x)