unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* etc-sudoers-generic-mode
@ 2007-11-21 19:41 Reiner Steib
  2007-12-08 14:30 ` etc-sudoers-generic-mode Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Reiner Steib @ 2007-11-21 19:41 UTC (permalink / raw)
  To: emacs-devel

Hi,

How about adding a mode definition for /etc/sudoers to generic-x.el?

(define-generic-mode etc-sudoers-generic-mode
  '(?#)
  '("User_Alias" "Runas_Alias" "Host_Alias"  "Cmnd_Alias"
    "NOPASSWD" "PASSWD" "NOEXEC" "EXEC"
    "ALL")
  '(("\\<\\(root\\|su\\)\\>" 1 font-lock-warning-face)
    ("\\(\\*\\)" 1 font-lock-warning-face)
    ("\\<\\(%[A-Za-z0-9_]+\\)\\>" 1 font-lock-variable-name-face))
  '("/etc/sudoers\\'")
  nil
  "Generic mode for sudoers configuration files.")

If there's no objection I intend to install it in a few days.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: etc-sudoers-generic-mode
  2007-11-21 19:41 etc-sudoers-generic-mode Reiner Steib
@ 2007-12-08 14:30 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2007-12-08 14:30 UTC (permalink / raw)
  To: emacs-devel

On Wed, Nov 21 2007, Reiner Steib wrote:

> How about adding a mode definition for /etc/sudoers to generic-x.el?
>
> (define-generic-mode etc-sudoers-generic-mode
>   '(?#)
>   '("User_Alias" "Runas_Alias" "Host_Alias"  "Cmnd_Alias"
>     "NOPASSWD" "PASSWD" "NOEXEC" "EXEC"
>     "ALL")
>   '(("\\<\\(root\\|su\\)\\>" 1 font-lock-warning-face)
>     ("\\(\\*\\)" 1 font-lock-warning-face)
>     ("\\<\\(%[A-Za-z0-9_]+\\)\\>" 1 font-lock-variable-name-face))
>   '("/etc/sudoers\\'")
>   nil
>   "Generic mode for sudoers configuration files.")
>
> If there's no objection I intend to install it in a few days.

Done.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-08 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21 19:41 etc-sudoers-generic-mode Reiner Steib
2007-12-08 14:30 ` etc-sudoers-generic-mode Reiner Steib

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).