[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
viper and py-electric-backspace
From: |
Sean Richards |
Subject: |
viper and py-electric-backspace |
Date: |
Mon, 06 Oct 2003 22:29:33 +1300 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Hi,
I need some help getting viper to play nice with python-mode. How do I
get backspace to call py-electric-backspace when I am using viper as
well? When in insert mode C-h k on backspace gives 'viper-backward-char'
as the function it is mapped to. So I think I need to use a defadvice
around viper-backward-char. Something like ...
(defadvice viper-backward-char (around my-viper-py-backspace activate)
(if (check if we are in python-mode)
(py-electric-backspace someargument)
ad-do-it))
OK so I am not sure how to check what the buffer mode is. Use mode-name
or something better? And the argument to py-electric-backspace? Am I on
the right track or completely lost?
Cheers, Sean
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
- viper and py-electric-backspace,
Sean Richards <=