JS <[EMAIL PROTECTED]> writes: > In my .emacs file I have made this: > > (global-set-key "\C-z" 'shell) > > And it works fine when I restart emacs. > > > > > But when I do this: > > (global-set-keyÂ"\M-a"Â'comment-dwim) > > I get this error when I restart: > > > > > An error has occurred while loading `/home/johs/.emacs': > > Symbol's function definition is void: global-set-key > > ------------------------ > > I have then tried to start emacs like this: emacs --debug-init and then I > get this: > > Debugger entered--Lisp error: (void-function global-set-keyÂ) > (global-set-key "Ã"  (quote comment-dwim)) > eval-buffer(#<buffer *load*> nil "~/.emacs" nil t) > load-with-code-conversion("/home/johs/.emacs" "~/.emacs" t t) > load("~/.emacs" t t) > #[nil "  > ---------------------------- Can you execute the command witin *scratch*?
If so, maybe you need to do a (require 'newcomment) to make sure the definition for cmment-dwim is loaded before the key binding is used? Tim -- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out! _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs