I am reading the Intro to Lisp Programing and got to the chapter where switch-to-buffer
is introduced.
I tried to bind (switch-to-buffer "*scratch*")
via global-set-key
But this does not work:
(global-set-key (kbd "<S-f11>") '(switch-to-buffer "*scratch*"))
I looked at Bernt Hansens config and he defined an extra function for this.
(defun bh/switch-to-scratch ()
(interactive)
(switch-to-buffer "*scratch*"))
Why is this necessary?