You are not logged in.

#1 2011-08-23 22:19:28

Vifon
Member
Registered: 2011-08-23
Posts: 3

[SOLVED] wmii and emacsclient problem

This is my first post here, so hello everyone.

I'm trying to use emacsclient under wmii but it doesn't work properly. The first window appears exactly where I want but the next ones appear right under the first window. It doesn't matter if I'm on that tag, it will appear there. It doesn't happen on the other window managers.

Does anyone have any idea why it acts so strange?

Last edited by Vifon (2011-09-03 16:06:04)

Offline

#2 2011-08-24 03:01:20

mongrol
Member
Registered: 2010-01-06
Posts: 31

Re: [SOLVED] wmii and emacsclient problem

I'll take a guess at this as I've just started learning emacs. If you run emacsclient a second time then it uses the already open instance of emacs. So what's happening is  you have one emacs running in a wmii window with two files open. Emacs then tiles the buffers vertically. What your seeing is two emacs windows inside emacs, not two wmii windows.

Offline

#3 2011-08-24 08:29:41

jiyuu
Member
Registered: 2010-04-13
Posts: 63

Re: [SOLVED] wmii and emacsclient problem

To add to what mongrol said, you have to use the '-c' option of emacsclient to create a new frame.

Offline

#4 2011-08-24 09:26:55

Vifon
Member
Registered: 2011-08-23
Posts: 3

Re: [SOLVED] wmii and emacsclient problem

I already use the -c option so it's not the case.

Offline

#5 2011-09-03 16:05:49

Vifon
Member
Registered: 2011-08-23
Posts: 3

Re: [SOLVED] wmii and emacsclient problem

I've just found the solution. I've added this to the rules section of ~/.wmii-hg/wmiirc:

wmiir write /rules <<!
    /^emacs/ group=0
!

Offline

Board footer

Powered by FluxBB