gpt4 book ai didi

emacs - 如何使用预定义窗口启动 Emacs?

转载 作者:行者123 更新时间:2023-12-05 04:18:00 28 4
gpt4 key购买 nike

有没有办法让我的 Emacs 以预定义的框架作为我附加的屏幕截图开始?我不太熟悉如何在我的 .emacs 脚本中执行此操作...

Emacs with three frame

就这么简单:

  1. split-window-horizo​​ntally(并排创建两个窗口)
  2. split-window-vertically(将左边的第一个窗口分成两部分)。

在最后一个窗口中,我希望它上传一个日历。我之所以这样安排,主要是因为我的显示器左侧的 LCD 坏了。所以我的代码必须在屏幕的右侧:)

编辑 1基于 Juanleon 的回答,我添加了另一个 eshell 窗口 + 打开一个特定的 *.org 文件(这是我的假设,我应该启动 emacs 进行项目工作):

;my preferred working space                                                                                                                                                                                                       
(find-file "docs/steps.org")
(split-window-horizontally)
(other-window 1)
(calendar)
(other-window 2) ;main code
(split-window-vertically)
(other-window 1)
(eshell)
(other-window 2)

生成此视觉效果: enter image description here

最佳答案

把它放在你的初始化文件的末尾:

    (split-window-horizontally)
(other-window 1)
(calendar)
(other-window 1)

关于emacs - 如何使用预定义窗口启动 Emacs?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19085514/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com