From: Rob Kinsey <psycho.dynamics@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Multiple monitors, different setup
Date: Sat, 14 Mar 2015 09:42:17 -0700 (PDT) [thread overview]
Message-ID: <f9f10dfc-5364-4b71-b6e3-45d4d7e04345@googlegroups.com> (raw)
In-Reply-To: <b39ec130-ae05-4bf4-a90d-ce82243a881e@googlegroups.com>
On Saturday, March 14, 2015 at 8:37:00 AM UTC, Rob Kinsey wrote:
> Hi all,
>
> Just getting into emacs right now and have got a set up I am happy with using the .emacs file.
>
> At present I have a macbook pro and an external monitor. when the two are connected, to get emacs opening how I want to, i.e. open on non primary monitor and nearly maximized, I have used this line in the .emacs file:
>
> (setq default-fram-alist
> '((top + -550) (left + -1400) (width . 190) (height . 60)))
>
> which puts it nicely on my macbooks monitor which when docked is not the primary monitor.
>
> Is there a way that I can have the .emacs file do a check to see if the second monitor is present so that when it is not docked, my emacs screen can be re positioned so it is in standard default out of the box emacs mode?
>
> I am assuming an if statement in the lisp checking for dvi port but not sure how.
>
> any help on this would be greatly appreciated.
>
> Kind regards
>
> P166BUG
Thanks very much for your replies, I can do a little more research now, still learning, just need a nudge from time to time.
Regards
P166BUG
prev parent reply other threads:[~2015-03-14 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 8:36 Multiple monitors, different setup Rob Kinsey
2015-03-14 13:24 ` Javier
2015-03-14 13:45 ` Eli Zaretskii
2015-03-14 16:42 ` Rob Kinsey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f9f10dfc-5364-4b71-b6e3-45d4d7e04345@googlegroups.com \
--to=psycho.dynamics@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.