From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: Mode-local Defining keys for modes that are missing mode-local key-maps Date: Fri, 17 Oct 2008 04:27:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: <57485a18-b8c1-4a58-8a06-31da0b89249f@l77g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224243689 31725 80.91.229.12 (17 Oct 2008 11:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 11:41:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 13:42:30 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kqnik-0008UN-8L for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 13:42:18 +0200 Original-Received: from localhost ([127.0.0.1]:54374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kqnhf-0004vz-OL for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 07:41:11 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l77g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1224242875 16077 127.0.0.1 (17 Oct 2008 11:27:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 17 Oct 2008 11:27:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l77g2000hse.googlegroups.com; posting-host=150.227.15.253; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 ip-w.foi.se:8080 (IronPort-WSA/5.6.0-618) Original-Xref: news.stanford.edu gnu.emacs.help:163528 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58870 Archived-At: I am looking for a way to replace this little snippet in pnw-uni- complete.el (global-unset-key [(tab)]) (define-prefix-command 'uni-complete-map nil "Complete") (define-key uni-complete-map [(tab)] 'pnw/uni-complete-or- indent) ;Note: Easiest to press: My Unified version. (define-key uni-complete-map [(i)] 'indent-for-tab-command) ;Indent (define-key uni-complete-map [(w)] 'fixup-whitespace) ;in-Code Indentation ... (define-key makefile-mode-map [(tab)] 'uni-complete-map) ;;(define-key autoconf-mode-map [(tab)] 'uni-complete-map) (define-key lisp-mode-map [(tab)] 'uni-complete-map) with a way that also works for modes that doesn't provide an own local key-map, for example autoconf-mode.el. Is there such a way or is it easier patch these modes that are missing it? /Nord=F6w