请问在*scratch*写好的代码怎么运行

刚开始深入emacs,不知道写在*scratch*的代码怎么运行到指定缓存区,请哪位教教我

办法很多,

  1. M-: (buffer-name)
  2. with-current-buffer
  3. 定义成命令,用 M-x

最简单粗暴的:复制代码,到另一个buffer,M-:,粘贴,运行

1 个赞