当您启动 Emacs 时,如果希望获得与关闭时相同的外观,可以尝试以下方法:
--no-splash
和 --no-window-system
。这将禁用启动画面和图形界面,并启动 Emacs 的文本界面。emacs --no-splash --no-window-system
-l
或 --load
参数指定配置文件的路径。例如,如果您希望加载名为 my-emacs-config.el
的配置文件,可以使用以下命令:emacs -l /path/to/my-emacs-config.el
-e
或 --execute
参数指定要执行的命令。例如,如果您希望在启动 Emacs 时自动设置行号显示,可以使用以下命令:emacs -e "(global-linum-mode 1)"
my-file.txt
的文件,可以使用以下命令:emacs /path/to/my-file.txt
通过以上方法,您可以在启动 Emacs 时控制其外观和行为,以获得与关闭时相同的外观。
领取专属 10元无门槛券
手把手带您无忧上云