Skip to main content
1 of 4
SabreWolfy
  • 1.5k
  • 1
  • 15
  • 26

Global key to run custom function

I added this function to my ~/.emacs file and run it by entering M-x my-turn-current-window-into-frame RET.

I added the following to my ~/.emacs file after that function:

(global-set-key (kbd "<f12>") 'pop-current-window-info-frame) 

I copied that line to *scratch* and evaluated it.

When I press F12, Emacs returns:

Symbol's function definition is void: my-turn-current-window-into-frame 

How can I configure a hot-key to run this function?

SabreWolfy
  • 1.5k
  • 1
  • 15
  • 26