After having the unnecessary scroll-, tool- and foo-bars removed it is nice to toggle emacs fullscreen with a keyboard shortcut.
The following code pasted into the .emacs file will do the job under Ubuntu, using wmctrl. It works with a lot of desktop managers (Xfce, fluxbox, Gnome at I tried at least). If it is not installed
sudo aptitude install wmctrl
First define a lisp function calling wmctrl:
(defun djcb-full-screen-toggle ()
(shell-command "wmctrl -r :ACTIVE: -b toggle,fullscreen"))
and then a keybinding to the function
(DefGlobKey "H-f" 'djcb-full-screen-toggle)
In this example toggle fullscreen is bound to H-f which means pressing the Hyper key and f. You have to customize it to your needs.