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: Stefan Monnier
Subject: Re: improving network utility calls in lisp/net/net-utils.el
Date: Fri, 10 Apr 2009 18:14:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

>> +(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
      ^^^
    should

> buffer-read-only, and it has the binding for "q".


        Stefan




reply via email to

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