unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jadamson@partners.org (Joel J. Adamson)
To: Geoffrey Smith <gpsmith@uiuc.edu>
Cc: help-gnu-emacs@gnu.org
Subject: Re: default fullscreen mode
Date: Thu, 13 Mar 2008 09:53:11 -0400	[thread overview]
Message-ID: <87ejae7mt4.fsf@W0053328.mgh.harvard.edu> (raw)
In-Reply-To: <20080312141433.BDH73341@expms1.cites.uiuc.edu> (Geoffrey Smith's message of "Wed, 12 Mar 2008 14:14:33 -0500 (CDT)")

Geoffrey Smith <gpsmith@uiuc.edu> writes:

> Is there any way to make -fs the default? 

There are several ways:

Here's my toggle-fullscreen function (from Emacswiki):

;Full screen toggle
;courtesy of http://www.emacswiki.org/cgi-bin/wiki/FullScreen
(defun toggle-fullscreen ()
  "Toggle between fullscreen and partial screen display on X11;
courtesy of http://www.emacswiki.org/cgi-bin/wiki/FullScreen"
  (interactive)
  (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
	    		 '(2 "_NET_WM_STATE_FULLSCREEN" 0)))

Put that in your .emacs and call it at the end.                         

> Alternatively, is there any way to reassign the "emacs -fs" command so
> that all I have to type in is "emacs" instead of "emacs -fs"?

Use a shell alias

alias emacs='emacs -fs'

Joel

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

The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.







  reply	other threads:[~2008-03-13 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12 19:14 default fullscreen mode Geoffrey Smith
2008-03-13 13:53 ` Joel J. Adamson [this message]
     [not found] <mailman.8808.1205370794.18990.help-gnu-emacs@gnu.org>
2008-03-13 17:52 ` Wang xiangdong

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ejae7mt4.fsf@W0053328.mgh.harvard.edu \
    --to=jadamson@partners.org \
    --cc=gpsmith@uiuc.edu \
    --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.
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).