Emacs 不重启,生效配置
C-x C-e 执行光标前面的一条语句
选择一个 region, M-x eval-region
M-x load-file ~/.emacs
M-x eval-buffer
以上方法都是立即生效。
例:在任何一个文件中,输入以下语句:
(setq frame-title-format "emacs@%b")
把光标停在在这条语句后面, C-x C-e ,即可看到 Emacs 的标题栏上发生了变化。
这种方法非常适合调试小的配置
This book is dedicated, in respect and admiration, to the spirit that lives in the computer.
C-x C-e 执行光标前面的一条语句
选择一个 region, M-x eval-region
M-x load-file ~/.emacs
M-x eval-buffer
以上方法都是立即生效。
例:在任何一个文件中,输入以下语句:
(setq frame-title-format "emacs@%b")
把光标停在在这条语句后面, C-x C-e ,即可看到 Emacs 的标题栏上发生了变化。
这种方法非常适合调试小的配置