2009-07-17 76 views

回答

1

好了,你可以建立一個(tcsh的)別名,像這樣

alias emacs emacs -eval '"(run-with-idle-timer 0 nil (quote delete-other-windows))"' 

這使得emacs的隱藏所有其他窗口(所以你只有一個)。所以你調用

emacs file1 file2 

被翻譯成

emacs -eval '"(run-with-idle-timer 0 nil (quote delete-other-windows))"' file1 file2 
0

討厭和hackish的,但它的工作原理:

$ emacs -nw --eval "(mapcar 'find-file '(\"1.txt\" \"2.txt\"))" 
0

或者直接按C-X 1的Emacs後加載。

就我個人而言,如果您從命令行調用emacs,我認爲您在濫用emacs。我傾向於從eshell內部運行emacs內部的文件。

+0

一次顯示多個緩衝區非常有價值。有了大顯示器,我可以顯示4個緩衝區,每個緩衝區都可用。這通常不是我需要的,但是當我這樣做時...... – Cheeso 2009-07-17 18:55:33

10
(add-hook 'window-setup-hook 'delete-other-windows) 

按照我想要的方式工作......在我問到這裏後才發現這個問題。

相關問題