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?