Aquamacs/Emacs 窗格自动配置
我使用 Aquamacs 已经有几周了,我正在努力寻找好的定制方案。 首先,我只是希望我的 aquamacs 在启动时看起来像这样:
我的意思是在左边,我的源代码。右侧是 shell 窗格(从 CX 3 + MX shell 开始)。
我在 emacs/aquamacs 论坛以及 stackOverflow 上进行了一些搜索。但我对此仍然受阻。 谢谢。 :)
I'm using Aquamacs since few weeks and I'm trying to find good customizations.
First, I just wanted my aquamacs to look like this on starting :
I mean on the left, my source code. and on the right a shell pane (started with C-X 3 + M-X shell).
I've done some search on emacs/aquamacs forums, and in stackOverflow too. But I'm still blocked on this.
Thanks.
:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您需要的只是拆分窗口并在新创建的窗口中打开 shell,您应该能够将以下内容添加
到
.emacs
或.emacs.d/ 的末尾init.el
取决于您初始化 emacs 的方式。或者,将其设为单独的功能,并绑定到键盘命令。 (将这些添加到
.emacs
而不是上面的代码。)例如
并绑定,
因此您可以在需要时使用它,而不仅仅是在启动时使用它。
(它将始终显示相同的 shell 实例。)
If all you need is to split the window and open the shell in the newly created window, you should be able to add this:
to the end of your
.emacs
or.emacs.d/init.el
depending on how you initialise emacs.Alternatively, make it a separate function, and bind to a key command. (add these to
.emacs
instead of the above code.)e.g.
And bind with
So you can use it when you want, and not just at startup.
(It will always show the same instance of shell.)
这是东西!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
;; C 编程东西
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;饥饿删除很好,因为我们使用空格而不是制表符。
(setq c-饥饿-删除-键 t)
;;让 emacs 尽可能自动插入换行符。
(setq c-自动换行 1)
;;设置启动 C 模式时的 K&R 缩进样式。
(添加钩子'c-模式钩子
HEre is the stuff !!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; C programming stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Hungry delete is nice since we use spaces instead of tabs.
(setq c-hungry-delete-key t)
;; Let emacs insert newlines automatically whenever it can.
(setq c-auto-newline 1)
;; Set the K&R indentation style when starting C-mode.
(add-hook 'c-mode-hook