使用 Emacs 以组织模式启动
我发现 org-mode 非常有用,并且我希望在运行 emacs 时将 org-mode 作为默认模式启动。 我怎样才能做到这一点?
I find org-mode very useful, and I'd like start org-mode as default mode when I run emacs.
How can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我假设您希望保持默认的 *scratch* 缓冲区打开。将以下内容添加到您的 .emacs 中:
I assume you want to keep the default
*scratch*
buffer open. Add the following to your .emacs:我也喜欢组织模式,但在编辑代码文件时不想使用它。我使用以下配置,我觉得这更方便,也许对您有用:
1)将以下行添加到您的 .emacs 文件中,每次您打开 .org 中的文件时,都会将 emacs 置于 org 模式。 ref、.notes 或其加密版本。
2)我喜欢早上直接以议程模式启动emacs(但在其他场合仍然以正常方式启动)。我为它定义了一个 shell 别名:
祝你好运!
I love org-mode as well, but would not want to use it when I edit code files. I use the following configuration, which I find more convenient, maybe it will be of some use to you:
1) Adding the following lines to your .emacs file will put emacs in org-mode everytime you open a file in .org, .ref, .notes, or an encrypted version of it.
2) I like to launch emacs directly in agenda mode in the morning (but still launch it in normal way in other occasions). I defined a shell alias for it:
Good luck!
如果您已设置 org-mode 来跟踪您的议程,则可以通过将以下行添加到您的 .emacs 来启动 Emacs,显示您的每周议程:
If you've got org-mode set up to keep track of your agenda, you can get Emacs to start by showing your weekly agenda by adding this line to your .emacs:
我刚刚将其添加到 Emacs 自动生成的自定义设置变量列表中。
'(初始主要模式(引用组织模式))
I've just got this in my list of custom-set-variables that Emacs produces automatically.
'(initial-major-mode (quote org-mode))
如果你像我一样经常使用 org-mode,最好的方法(我认为)是启动 emacs 并加载并显示 org 文件。 (+ a (组织议程列表))。您可以检查我的 .emacs 文件以了解如何设置它。
PS,我有一个带有 .emacs 配置就绪的便携式版本,它设置 org 模式、I-do 等。它还包括 org 示例文件。我认为这对于新来者来说是一个更好的起点。
基本上用runemacs.bat运行,一切就准备好了。
http://nd.edu/~gsong/portable_emacs.html
最好,
If you use org-mode very often like me, the best way(I think) is to start emacs with and org file loaded and shown. (+ a (org-agenda-list)). You can check my .emacs file to see how to set it up.
PS, I have a portable version with .emacs configure ready, which setup org mode, I-do, etc. It also included org sample file. I think that is a better start point for new comers.
Basically run with runemacs.bat and everything is ready.
http://nd.edu/~gsong/portable_emacs.html
Best,
或者,您可以设置 emacs 显示您的 org 文件。
Or, you can set emacs to display your org file.