Fullscreen

http://www.emacswiki.org/emacs/FullScreen#toc1

I actually use this:

install windows manager

pet@girl:~$ sudo apt-get install wmctrl

NOTE: wmctrl= Window Manager CTRL
 

.emacs looks

 ;; peter--full screen
    (defun switch-full-screen ()
      (interactive)
      (shell-command "wmctrl -r :ACTIVE: -btoggle,fullscreen"))

    (global-set-key [f11] 'switch-full-screen)
 

hide toolbar

M-x tool-bar-mode

if I add

(tool-bar-mode)
into .emacs, this is done automatically and I can get the tool bar back if I want, by run the command again

I finally have this in my .emacs

;; run this in order to hide toolbar...
(tool-bar-mode)
(menu-bar-mode)
(scroll-bar-mode)
(switch-full-screen)

better way to do full screen

emacs -fs

have this script as a command in /usr/bin/eee may be in the future I want emacs run a el file during startup, I think I can aslo achieve this by changing /usr/bin/eee

open file at startup

Add (find-file "~/edocs/sed.muse" t) into .emacs

for good ideas

http://www.gnu.org/software/emacs/emacs-lisp-intro/html_mono/emacs-lisp-intro.html#Emacs-Initialization