M-x 是运行command的意思。
若使用常规Emacs
debugger(即不使用edebuger),先把要debug的函数加入到debug-on-entry:
defvar
或 defcustom什么的变量的值,另外你必须把point(光标)移动
到要执行的语句的结尾。
C-M-x
eval-defun,它可能是执行某条命令的最好方式了。它基本没有上面的命令的任何问题,你可
以在一个form的任何地方执行这条命令,它会自动选择执行最外层的form。Run the shell command line cmd and display the output (shell-command).
Run the shell command line cmd with region contents as input; optionally replace the region with the output (shell-command-on-region).
Run a subshell with input and output through an Emacs buffer. You can then give commands interactively.
Run a subshell with input and output through an Emacs buffer. You can then give commands interactively. Full terminal emulation is available.
Start the Emacs shell.
原文:http://www.cnblogs.com/welhzh/p/3783719.html