How can I start different mode with Emacs in command line?

泄露秘密 提交于 2019-12-23 07:43:27

问题


Is there a way to start different emacs mode using command line? For example, is it possible to run emacs as follows?

   emacs --org-mode # to start orgmode
   emacs --python-mode # to start python mode

I can just run emacs to input 'M-x org-mode' thereafter, but I wonder if I can start different modes.


回答1:


You can call functions with the -f argument, so to start org-mode use:

emacs -f org-mode


来源:https://stackoverflow.com/questions/4879365/how-can-i-start-different-mode-with-emacs-in-command-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!