* 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
* Re: Mode-local Defining keys for modes that are missing mode-local key-maps
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>
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-10-17 13:28 UTC (permalink / raw)
To: Nordlöw; +Cc: help-gnu-emacs
Am 17.10.2008 um 13:27 schrieb Nordlöw:
> Is there such a way or is it easier patch these modes that are missing
> it?
Couldn't a hook be a way to achieve what you want?
--
Greetings
Pete
With Capitalism man exploits man. With communism it's the exact
opposite.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mode-local Defining keys for modes that are missing mode-local key-maps
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>
2 siblings, 0 replies; 4+ messages in thread
From: Nikolaj Schumacher @ 2008-10-17 15:13 UTC (permalink / raw)
To: Nordlöw; +Cc: help-gnu-emacs
Nordlöw <per.nordlow@gmail.com> wrote:
> with a way that also works for modes that doesn't provide an own local
> key-map, for example autoconf-mode.el.
There is `autoconf-mode-map'...
> Is there such a way or is it easier patch these modes that are missing
> it?
Either way it should be reported as a bug.
regards,
Nikolaj Schumacher
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.1350.1224256431.25473.help-gnu-emacs@gnu.org>]
* Re: Mode-local Defining keys for modes that are missing mode-local key-maps
[not found] ` <mailman.1350.1224256431.25473.help-gnu-emacs@gnu.org>
@ 2008-10-17 16:10 ` Nordlöw
0 siblings, 0 replies; 4+ messages in thread
From: Nordlöw @ 2008-10-17 16:10 UTC (permalink / raw)
To: help-gnu-emacs
On 17 Okt, 17:13, Nikolaj Schumacher <m...@nschum.de> wrote:
> Nordlöw <per.nord...@gmail.com> wrote:
> > with a way that also works for modes that doesn't provide an own local
> > key-map, for example autoconf-mode.el.
>
> There is `autoconf-mode-map'...
>
> > Is there such a way or is it easier patch these modes that are missing
> > it?
>
> Either way it should be reported as a bug.
>
> regards,
> Nikolaj Schumacher
My mistake.
Sorry,
Nordlö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.