title: emacs how to use call-interactively with parameter
body: <p>If I want to make my own function which among other thing calls <strong>wg-save</strong> (workgroups.el - save workgroups) then I do something like this:</p>
  
  <pre><code>(defun foo ()
    (interactive)
    ...
    (call-interactively 'wg-save)
  )
  (global-set-key (kbd "my binding") 'foo)
  </code></pre>
  
  <p>What about the following scenario (I will use eyebrowse.el as an example):</p>
  
  <p>eyebrowse uses C-c C-w 'number' to move to different window configurations e.g. C-c C-w 1 to move to 1 or C-c C-w 2 to move to 2.</p>
  
  <p>How can I write a similar function like the 'foo' since now I need to pass to 'call-interactively' a 'number' as parameter?</p>
  
  <p>EDIT: C-c C-w 1 calls eyebrowse-switch-to-window-config-1.
  So I need to make a 'foo' function like the above that will 'call-interactively' 
  'eyebrowse-switch-to-window-config-1' when the key binding is 'C-c C-w 1', 'eyebrowse-switch-to-window-config-2' when the key binding is 'C-c C-w 2' etc.
  Something like the following (if it makes sense):</p>
  
  <pre><code>(defun foo ()
      (interactive)
      ...
      (call-interactively 'eyebrowse-switch-to-window-config-"number")
  )
  (global-set-key (kbd "C-c C-w 'number'") 'foo)
  </code></pre>