emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Ryan C. Thompson" <darwinawdwinner@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Setting custom frame parameters for org remember frame
Date: Fri, 03 Jul 2009 14:47:51 -0400	[thread overview]
Message-ID: <4A4E5257.3050207@gmail.com> (raw)

I am using org-remember set to open a new frame when used, and the
default frame size is much too large. To fix this, I have designed some
advice and a custom variable to implement custom parameters for the
remember frame:

(defcustom remember-frame-alist nil
  "Additional frame parameters for dedicated remember frame."
  :type 'alist
  :group 'remember)

(defadvice remember (around remember-frame-parameters activate)
  "Set some frame parameters for the remember frame."
  (let ((default-frame-alist (append remember-frame-alist
default-frame-alist)))
    ad-do-it))

I have set remember-frame-alist to
((width . 80) (height . 15))

which gives me a reasonable-sized frame, and provides and easy way to
change it later.

(I accidentally sent this from the wrong address before. Admins, please 
delete/ignore the other one.)

             reply	other threads:[~2009-07-03 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-03 18:47 Ryan C. Thompson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-07-03 18:20 Setting custom frame parameters for org remember frame Ryan C. Thompson
2009-07-16 19:43 ` Bastien

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A4E5257.3050207@gmail.com \
    --to=darwinawdwinner@gmail.com \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).