lisp - eval command onto other buffer in Emacs -
i have broken meta key , trying m-x viper-mode onto org file.
i want elisp run (viper-mode) onto example.org file scratch buffer.
in lisp, call set-buffer switch different buffer editing operations (this doesn't affect buffer user interacts with).
(save-excursion (set-buffer "example.org") (viper-mode)) the save-excursion form executes arguments, returns current buffer. here, use progn instead, because returning toplevel restores current buffer. need group 2 function calls anyway, , save-excursion habit into.
but note problem meta key doesn't work, can type esc x instead of meta+x (and likewise other m-key combination).
Comments
Post a Comment