all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jadamson@partners.org (Joel J. Adamson)
To: help-gnu-emacs@gnu.org
Subject: Re: Frames: selectively enabling GUI [SOLVED!]
Date: Thu, 16 Aug 2007 17:30:45 -0400	[thread overview]
Message-ID: <87tzqzcgl6.fsf_-_@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: 87vebfw814.fsf@orme.bigwalter.net

daniel@bigwalter.net (Daniel Jensen) writes:

> jadamson@partners.org (Joel J. Adamson) writes:
>
>>     I've been mucking about with make-variable-frame-local, but
>> the problem I'm having is controlling the modes from within a function
>> (perhaps a hook).  I just don't know where to go from
>> make-variable-frame-local --- can I even make a mode frame-local?
>
> There are frame parameters for this. See the Elisp manual and/or have a
> look at the source code for `menu-bar-mode', `toggle-scroll-bar' etc.

Here's the solution:

**********************************************************************
(defun gnus-frame-defaults ()
  (mapc 'make-variable-frame-local
	 '(height width menu-bar-lines tool-bar-lines vertical-scroll-bars))
  (modify-frame-parameters '() '((height . 40)
				 (width . 136)
				 (menu-bar-lines . 1)
				 (tool-bar-lines . 1)
				 (vertical-scroll-bars . 1))))
(add-hook 'gnus-group-mode-hook 'gnus-frame-defaults)
**********************************************************************

I am writing this now in a fully-tooled, fully-scrolled and
menu-ridden frame.  My other frames are untouched.

Thanks for your help,
Joel


-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

"It can be interesting to study ancient philosophy, but more as a kind
of accident report than to teach you anything useful."
                                        --Paul Graham
					http://www.paulgraham.com/raq.html

  reply	other threads:[~2007-08-16 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-16 17:52 Frames: selectively enabling GUI Joel J. Adamson
2007-08-16 19:33 ` Tassilo Horn
2007-08-16 20:15 ` Daniel Jensen
2007-08-16 21:30   ` Joel J. Adamson [this message]
2007-08-17  7:19 ` Emilio Lopes

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=87tzqzcgl6.fsf_-_@W0053328.mgh.harvard.edu \
    --to=jadamson@partners.org \
    --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.