TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Emacs as a tiling window manager

65 pointsby mariusaeover 15 years ago

7 comments

nfgover 15 years ago
The main benefit of this as I see it - moving between windows (in the emacs sense of the word) - can be got by installing windmove.el ( <a href="http://www.emacswiki.org/emacs/WindMove" rel="nofollow">http://www.emacswiki.org/emacs/WindMove</a> ). Once you've got it it's hard to go without (actually the author of this piece used windmove too!). Another indespensible tool is winner-mode ( <a href="http://www.emacswiki.org/emacs/WinnerMode" rel="nofollow">http://www.emacswiki.org/emacs/WinnerMode</a> ) which remembers emacs window layouts and allows you to "undo" window changes.
评论 #1080360 未加载
jrockwayover 15 years ago
Interesting that this came up today. I've just started writing an xmonad layout manager that asks emacs where a certain buffer is physically on the screen, and then it puts a regular window on top of that. (It will also let you emacs focus and unfocus that window, so pop-to-buffer will move xmonad's focus there, if necessary; and mod-j/mod-k will delegate to emacs when necessary.)<p>Anyway, the idea is to let you have a full-screen emacs with a real xterm or web browser "inside" of it.
评论 #1080911 未加载
mikedouglasover 15 years ago
Unless you patch the Cocoa display logic, the fullscreen function won't work for those using Cocoa Emacs. You can still get 90% there using maxframe.el[0].<p><pre><code> ;; psuedo-fullscreen (require 'maxframe) (setq mf-max-width 1440) (defun toggle-maxframe () (interactive) (if (eq (mf-max-columns (mf-max-display-pixel-width)) (frame-width)) (restore-frame) (maximize-frame))) (global-set-key (kbd "&#60;s-return&#62;") 'toggle-maxframe) </code></pre> [0]: <a href="http://github.com/jmjeong/my-dot-emacs/blob/master/maxframe.el" rel="nofollow">http://github.com/jmjeong/my-dot-emacs/blob/master/maxframe....</a>
评论 #1080244 未加载
amixover 15 years ago
This is possible in Vim as well :D, check out -&#62; <a href="http://amix.dk/blog/post/19403#Hacking-without-distractions" rel="nofollow">http://amix.dk/blog/post/19403#Hacking-without-distractions</a><p>Regarding the moving between windows it can be done with following maps in Vim:<p><pre><code> map &#60;C-j&#62; &#60;C-W&#62;j map &#60;C-k&#62; &#60;C-W&#62;k map &#60;C-h&#62; &#60;C-W&#62;h map &#60;C-l&#62; &#60;C-W&#62;l</code></pre>
评论 #1080528 未加载
评论 #1080531 未加载
ams6110over 15 years ago
Just tried in Aquamacs 1.9, seems to work, except I have the Command key as meta (because of years of having the Meta key immediately to the left of the spacebar), so the M-h binding ends up hiding Aquamacs rather than moving focus left. There should be a way to correct that because Aquamacs disables some other standard Mac "Command-" bindings when using Command as meta.
Plugawyover 15 years ago
Cool stuff - especially when I decided to switch to emacs from vim.<p>Fixes one of the annoyances (moving between splits)
wendroidover 15 years ago
cor, what a lot of nonsense<p><pre><code> % aux/vga -l 1024x768x16 % exec acme # instead of rio </code></pre> all done