I have a broken meta key and am trying to do M-x viper-mode onto an org file.
I want elisp to run (viper-mode) onto the example.org file from the scratch buffer.
I have a broken meta key and am trying to do M-x viper-mode onto an org file.
I want elisp to run (viper-mode) onto the example.org file from the scratch buffer.
Copyright © 2021 Jogjafile Inc.
In Lisp, call
set-bufferto switch to a different buffer for editing operations (this doesn't affect what buffer the user interacts with).The
save-excursionform executes its arguments, then returns to the originally current buffer. Here, you could actually useprogninstead, because returning to the toplevel restores the current buffer. But you need to group the two function calls anyway, andsave-excursionis a good habit to get into.But note that your problem is that your Meta key doesn't work, you can type Esc x instead of Meta+x (and likewise for any other
M-keycombination).