how can i change the initial directory on emacs (i start using it today, and there are a lot of things to learn!!), right now im using M-X cd and then i change the directory that i use for C-x C-f, but in a daily work im gonna use heavily one particular directory so i need to make the change permanent... also if you have some tips for a starter it will be nice
To set a default directory, simply put
(cd "/default/path/")
in your ~/.emacs file.
Emacs has a steep learning curve, but with constant use the most common commands will soon become second nature. As you discover more, emacs may become your favorite text editor, file manager, and email reader :)
To learn emacs, I'd start by pressing C-h t
to start plowing through the excellent tutorial. Have a pad of paper beside you and write down the commands as you learn them. You'll use the crib sheet at first, but after a while, as I mentioned before, your fingers will learn the key combinations without your brain conciously intervening.
Good luck and have fun!
If you're starting emacs, take a look at the Emacs Starter Kit:
http://github.com/technomancy/emacs-starter-kit
It doesn't have tutorial information, but it sets up keybindings in a way that's somewhat better than the default. I also learned stuff just by reading through the starter-kit-bindings.el file.
Start up emacs only after changing to that "initial directory", effectively setting the current directory for emacs.
I like GNU's A Guided Tour of Emacs page for a beginner's introduction to Emacs and what you might get out of it.
This isn't much different than ~unutbu's answer, but it's maybe a smidgen more useful:
(dired "/default/path")
Make sure it's the last thing in your .emacs, lest subsequent stuff open some other buffer.
Default directory is determined by:
(setq default-directory "~/")
in this case, set to the users home dir, but it could be somewhere else.
If this variable is not set, the initial load point for find-file will be the directory where the emacs executable lives.