What is the difference between `global-set-key` and `define-key global-map` in Emacs

Function global-set-key is an interactive function based on define-key which you can invoke by typing M-x global-set-key. Function define-key is rather used in Lisp programs.

You can look up global-set-key‘s source code with C-h f global-set-key to see that it only wraps define-key.

To answer your question, there are no significant differences between them.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)