* viper: viper-modify-major-mode
@ 2011-03-10 12:00 michael campbell
2011-03-10 23:29 ` Edward O'Connor
0 siblings, 1 reply; 5+ messages in thread
From: michael campbell @ 2011-03-10 12:00 UTC (permalink / raw)
To: help-gnu-emacs
I'm trying to customise viper in comint mode. I'd like the j and k keys to behave like control-down and control-up
in comint mode in vi-state. I have this
(viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map)
in my .viper where my-modifier-map has been set up appropriately. It doesn't work.
But in emacs-state, it does work. I have this
(viper-modify-major-mode 'comint-mode 'emacs-state my-modifier-map)
in my .viper and it behaves as expected.
Emacs version is "23.2.1"
Viper version is "3.14.1 of August 15, 2009"
$ uname -a
Linux sunspot 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux
Any ideas?
Michael
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viper: viper-modify-major-mode
2011-03-10 12:00 viper: viper-modify-major-mode michael campbell
@ 2011-03-10 23:29 ` Edward O'Connor
2011-03-11 20:50 ` michael campbell
0 siblings, 1 reply; 5+ messages in thread
From: Edward O'Connor @ 2011-03-10 23:29 UTC (permalink / raw)
To: michael campbell; +Cc: help-gnu-emacs
> I'm trying to customise viper in comint mode. I'd like the j and k keys to behave like control-down and control-up
> in comint mode in vi-state. I have this
>
> (viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map)
>
> in my .viper where my-modifier-map has been set up appropriately. It doesn't work.
Have you tried putting that in an (eval-after-load "coming" ...) form?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viper: viper-modify-major-mode
2011-03-10 23:29 ` Edward O'Connor
@ 2011-03-11 20:50 ` michael campbell
2011-03-11 21:09 ` Edward O'Connor
0 siblings, 1 reply; 5+ messages in thread
From: michael campbell @ 2011-03-11 20:50 UTC (permalink / raw)
To: Edward O'Connor; +Cc: help-gnu-emacs
Edward
Thanks for your reply.
> > I'm trying to customise viper in comint mode. I'd like the j and k keys to
> behave like control-down and control-up
> > in comint mode in vi-state. I have this
> >
> > (viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map)
> >
> > in my .viper where my-modifier-map has been set up appropriately. It
> doesn't work.
>
> Have you tried putting that in an (eval-after-load "coming" ...) form?
>
I haven't. Not quite sure how such a form works. Could you spell it out a bit for me or point me towards some
documentation.
Michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viper: viper-modify-major-mode
2011-03-11 20:50 ` michael campbell
@ 2011-03-11 21:09 ` Edward O'Connor
2011-03-17 20:19 ` michael campbell
0 siblings, 1 reply; 5+ messages in thread
From: Edward O'Connor @ 2011-03-11 21:09 UTC (permalink / raw)
To: michael campbell; +Cc: help-gnu-emacs
Hi,
>> Have you tried putting that in an (eval-after-load "coming" ...) form?
>
> I haven't. Not quite sure how such a form works. Could you spell it out a bit for me or point me towards some
> documentation.
(eval-after-load "comint"
'(viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map))
Untested, of course.
Ted
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: viper: viper-modify-major-mode
2011-03-11 21:09 ` Edward O'Connor
@ 2011-03-17 20:19 ` michael campbell
0 siblings, 0 replies; 5+ messages in thread
From: michael campbell @ 2011-03-17 20:19 UTC (permalink / raw)
To: Edward O'Connor; +Cc: help-gnu-emacs
> Hi,
>
> >> Have you tried putting that in an (eval-after-load "coming" ...) form?
> >
> > I haven't. Not quite sure how such a form works. Could you spell it out a
> bit for me or point me towards some
> > documentation.
>
> (eval-after-load "comint"
> '(viper-modify-major-mode 'comint-mode 'vi-state my-modifier-map))
>
> Untested, of course.
>
Doesn't seem to work. I'm puzzled that viper-modify-major-mode works for emacs-state but not vi-state.
Michael
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-17 20:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 12:00 viper: viper-modify-major-mode michael campbell
2011-03-10 23:29 ` Edward O'Connor
2011-03-11 20:50 ` michael campbell
2011-03-11 21:09 ` Edward O'Connor
2011-03-17 20:19 ` michael campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).