all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there an equivalent to emacs -fs in elisp?
@ 2008-02-25  0:41 Mathias Dahl
  2008-02-25  7:10 ` Jan Djärv
  0 siblings, 1 reply; 3+ messages in thread
From: Mathias Dahl @ 2008-02-25  0:41 UTC (permalink / raw)
  To: emacs-devel

Is there an equivalent to emacs -fs in elisp? I discovered the -fs
option today and think it is great when I want to see emacs only.
However, I do not always want this so it would be useful if I could
toggle this from inside emacs. For now I am using a tool called
`devilspie' to do it (I even patched that so it could "unfullscreen" a
window) but it would be better to avoid external tools when the
mechanism exist in emacs already on a lower level.

Thanks!

/Mathias




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

* Re: Is there an equivalent to emacs -fs in elisp?
  2008-02-25  0:41 Is there an equivalent to emacs -fs in elisp? Mathias Dahl
@ 2008-02-25  7:10 ` Jan Djärv
  2008-02-25 20:23   ` Mathias Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Djärv @ 2008-02-25  7:10 UTC (permalink / raw)
  To: Mathias Dahl; +Cc: emacs-devel


(set-frame-parameter frame 'fullscreen 'fullboth)

and to un-do it:

(set-frame-parameter frame 'fullscreen nil)

Undoing may or may not restore what you had before, it seems to depend on the 
window manager.  I'm looking in to it.

The documentation is in (elisp) Size Parameters.

	Jan D.



Mathias Dahl skrev:
> Is there an equivalent to emacs -fs in elisp? I discovered the -fs
> option today and think it is great when I want to see emacs only.
> However, I do not always want this so it would be useful if I could
> toggle this from inside emacs. For now I am using a tool called
> `devilspie' to do it (I even patched that so it could "unfullscreen" a
> window) but it would be better to avoid external tools when the
> mechanism exist in emacs already on a lower level.
> 
> Thanks!
> 
> /Mathias
> 
> 




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

* Re: Is there an equivalent to emacs -fs in elisp?
  2008-02-25  7:10 ` Jan Djärv
@ 2008-02-25 20:23   ` Mathias Dahl
  0 siblings, 0 replies; 3+ messages in thread
From: Mathias Dahl @ 2008-02-25 20:23 UTC (permalink / raw)
  To: Jan Djärv; +Cc: emacs-devel

>  (set-frame-parameter frame 'fullscreen 'fullboth)

Doh! I saw that parameter but thought "I don't want to create a new
frame, I want it to affect THIS frame." I completely forgot about
`selected-frame', which I have used many times in other cases. Thanks
for reminding me, kind of :)




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

end of thread, other threads:[~2008-02-25 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25  0:41 Is there an equivalent to emacs -fs in elisp? Mathias Dahl
2008-02-25  7:10 ` Jan Djärv
2008-02-25 20:23   ` Mathias Dahl

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.