From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ryan C. Thompson" Subject: Setting custom frame parameters for org remember frame Date: Fri, 03 Jul 2009 14:47:51 -0400 Message-ID: <4A4E5257.3050207@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMnnj-0008MO-IW for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 14:47:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMnne-0008HY-Vw for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 14:47:59 -0400 Received: from [199.232.76.173] (port=37891 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMnne-0008HM-Tq for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 14:47:54 -0400 Received: from mail-yx0-f201.google.com ([209.85.210.201]:40156) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MMnne-0008RT-GS for emacs-orgmode@gnu.org; Fri, 03 Jul 2009 14:47:54 -0400 Received: by yxe39 with SMTP id 39so3513618yxe.14 for ; Fri, 03 Jul 2009 11:47:53 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.)