开发者

In Emacs, can we maximize current active window, and then restore it back in multiple window environment?

I like to open multiple window, each with开发者_开发技巧 its own file opened. Sometimes, I want to maximize the one I edited to occupy whole screen, and then to restore it back to its previous size and position..

Is there a way?

According to the emacs menu, I can only figure out enlarge-window, shrink-window.. thats it..


More or less - try using winner-mode. It will remember the last few (ca 200) window configurations, and will let you walk through them with a simple (C-c (right|left)) keystroke. And it's quite easy to turn on, since it's built in:

(when (fboundp 'winner-mode)
  (winner-mode 1))

Combine it with windmove and moving between your windows will be even more awesome.


Use the command window-configuration-to-register: M-x window-configuration-to-register, press the Enter key, then some register (character), e.g. a. To maximize current window, use C-x 1. When you want to restore, type C-x r j a.


Workaround.

  1. ESC ESC ESC maximizes the buffer with active cursor.
  2. M-x ` to navigate between other buffers.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜