Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to set viper-toggle-key to M-z (C-z is undo and only undo!). Looks easy: I just need to add (setq viper-toggle-key [(meta ?z)]) in .viper. Except I get this message:

Warning (initialization): An error occurred while loading `d:/Alexey/Home/.emacs.d/init.el':

error: Key sequence M-z starts with non-prefix key

I don't understand why: M-z is a single key, not a sequence!

share|improve this question

1 Answer 1

M is the meta key, which is usually not a modifier (like control) - typically it's something like ESC, which you type prior to the other character, e.g. ESC then z. So meta key combinations are, in general, sequences, rather than single keypresses.

share|improve this answer
    
But why doesn't that imply that every <kbd>M-...</kbd> combination is a sequence? And one which starts with a non-prefix key? –  Alexey Romanov Jun 27 '10 at 10:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.