emacs - Why does the elisp function not work (as I expect it to)? -


I want to write something that will take a window back into emacs, and Cx So

  (global-set-key [cx SO] '(other-window-1))   

When I load a conteing it .emacs it, something breaks , All my scroll bars appear again (already disabled), and the Cx SO function is exactly as Cx o .

One would be fine, but I also tell why it does not work.

You have messed up the key vector, and I believe that you can do this No function name is to be used, there is no argument:

  (global-set-key "\ C-xO" 'my-other-window' (My-other-window) (Inactive) (interactive) (other window-1))   

For more details see:

  (emacs) init ribbing ")    

Comments