emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: improving network utility calls in lisp/net/net-utils.el


From: Dan Nicolaescu
Subject: Re: improving network utility calls in lisp/net/net-utils.el
Date: Fri, 10 Apr 2009 12:34:39 -0700 (PDT)

Yoni Rabkin <address@hidden> writes:

  > +(define-derived-mode net-utils-mode text-mode "NetworkUtil"
  > +  "Major mode for interacting with an external network utility."
  > +  (set
  > +   (make-local-variable 'font-lock-defaults)
  > +   '((net-utils-font-lock-keywords)))
  > +  (use-local-map net-utils-mode-map)
  > +  (setq buffer-read-only t))

You can derive from `special-mode' here (or just use it), it sets
buffer-read-only, and it has the binding for "q".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]