emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting custom frame parameters for org remember frame
@ 2009-07-03 18:20 Ryan C. Thompson
  2009-07-16 19:43 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Ryan C. Thompson @ 2009-07-03 18:20 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Setting custom frame parameters for org remember frame
@ 2009-07-03 18:47 Ryan C. Thompson
  0 siblings, 0 replies; 3+ messages in thread
From: Ryan C. Thompson @ 2009-07-03 18:47 UTC (permalink / raw)
  To: emacs-orgmode

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.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-16 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 18:20 Setting custom frame parameters for org remember frame Ryan C. Thompson
2009-07-16 19:43 ` Bastien
2009-07-03 18:47 Ryan C. Thompson

Code repositories for project(s) associated with this 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).