Elscreen has a method called elscreen-jump and also elscreen-jump-0 and elscreen-jump-9. I’d like to be able to jump to tabs between 0 and 9. How do I define a keymap for this? I’ve tried:
(global-set-key (kbd "M-1") (lambda () (interactive) (elscreen-jump 0)))
(global-set-key (kbd "M-2") (lambda () (interactive) (elscreen-jump 1)))
but I get an error:
Wrong number of arguments: (lambda nil "Switch to specified screen." (interactive) (let ((next-screen (string-to-number (string last-command-char)))) (if (and (<= 0 next-screen) (<= next-screen 9)) (elscreen-goto next-screen)))), 1
Any ideas?