all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Mode-local Defining keys for modes that are missing mode-local  key-maps
Date: Fri, 17 Oct 2008 04:27:54 -0700 (PDT)	[thread overview]
Message-ID: <57485a18-b8c1-4a58-8a06-31da0b89249f@l77g2000hse.googlegroups.com> (raw)

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öw


             reply	other threads:[~2008-10-17 11:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 11:27 Nordlöw [this message]
2008-10-17 13:28 ` Mode-local Defining keys for modes that are missing mode-local key-maps Peter Dyballa
2008-10-17 15:13 ` Nikolaj Schumacher
     [not found] ` <mailman.1350.1224256431.25473.help-gnu-emacs@gnu.org>
2008-10-17 16:10   ` Nordlöw

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57485a18-b8c1-4a58-8a06-31da0b89249f@l77g2000hse.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.