几个星期以来,我一直在使用Aquamacs,我正在努力寻找好的定制。首先,我只想让我的aquamacs在开始时看起来像这样:

我的意思是在左边,我的源代码。右边是shell窗格(从C-X3+ M-X shell开始)。
我在emacs/aquamacs论坛和stackOverflow上做了一些搜索。但我还是受阻于此。谢谢。:)
发布于 2011-01-21 20:42:28
HEre就是那个东西!!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;C编程工具
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;饥饿删除很好,因为我们使用空格而不是制表符。(setq c-饿-delete-key t)
;;让emacs尽可能自动插入换行符。(setq c-auto-newline 1)
;;设置启动C-mode时的K&R缩进样式。
(add-hook 'c-mode-hook
'(lambda ()
(c-set-style "k&r")
(auto-fill-mode 1)
))发布于 2011-01-16 09:32:31
如果您只需要拆分窗口并在新创建的窗口中打开shell,您应该能够添加以下内容:
(split-window-horizontally nil)
(other-window 1)
(shell nil)
(other-window 1) ;; return you to the original window.添加到您的.emacs或.emacs.d/init.el的末尾,这取决于您初始化emacs的方式。
或者,使其成为一个单独的函数,并绑定到一个键命令。(将这些代码添加到.emacs中,而不是上面的代码。)
例如:
(defun split-window-for-shell ()
"Split the current window and open a shell in the new window."
(interactive)
(split-window-horizontally nil)
(other-window 1)
(shell nil)
(other-window 1) ;; return you to the original window.
)并绑定到
(global-set-key (kbd "C-|") split-window-for-shell)所以你可以在你想要的时候使用它,而不仅仅是在启动的时候。
(它将始终显示相同的shell实例。)
https://stackoverflow.com/questions/4694465
复制相似问题