改变它后,如何重新加载.emacs? [英] How can I reload .emacs after changing it?

查看:73
本文介绍了改变它后,如何重新加载.emacs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让Emacs重新加载我在 .emacs 中更新的所有定义,而不重新启动Emacs?

How can I get Emacs to reload all my definitions that I have updated in .emacs without restarting Emacs?

推荐答案

可以使用命令load-file( Mx 加载文件,然后按两次返回接受默认文件名,这是正在编辑的当前文件)。

You can use the command load-file (M-x load-file, then press return twice to accept the default filename, which is the current file being edited).

您也可以将点移动到任何sexp的末尾,然后按 Cx Ce 来执行那个sexp。通常没有必要重新加载整个文件,如果你只是换一两行。

You can also just move the point to the end of any sexp and press C-xC-e to execute just that sexp. Usually it's not necessary to reload the whole file if you're just changing a line or two.

这篇关于改变它后,如何重新加载.emacs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆