Baloff <[EMAIL PROTECTED]> writes:

> in a .emacs-c++ file to be loaded from inside .emacs, I have
> (local-set-key [f4] "\C-c @ \C-c") ;toggles block hide/show
>
> restart emacs, when I open .cpp file, f4 does nothing.

First, the 2nd argument to 'local-set-key should be a function
definition, not another set of key bindings.  Use C-h k to see what
function "[EMAIL PROTECTED]" calls and use that function name as your second
argument.


Also, local-set-key only works on the current local keymap.  If you only
want that binding available in c++-mode, you probably have set the
binding in the mode hook
-- 
Jason Dufair - [EMAIL PROTECTED]
http://www.dufair.org/
***The above does not represent the views of my employer(s),
except for the bit about the cows.
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to