all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mode-local Defining keys for modes that are missing mode-local  key-maps
@ 2008-10-17 11:27 Nordlöw
  2008-10-17 13:28 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nordlöw @ 2008-10-17 11:27 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

end of thread, other threads:[~2008-10-17 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 11:27 Mode-local Defining keys for modes that are missing mode-local key-maps Nordlöw
2008-10-17 13:28 ` 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

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.