This will also work without the dependencies:<p><pre><code>  (defun maximize-frame ()
    (interactive)
    (set-frame-size (selected-frame)
                    (display-pixel-width)
                    (display-pixel-height))
    (set-frame-position (selected-frame) 0 0))
</code></pre>
EDIT: Should've read the help :)