sabof / project-explorer

A project explorer sidebar
267 stars 18 forks source link

Open Automatically at Beginning #29

Closed windweller closed 9 years ago

windweller commented 9 years ago

How to set up ~/.emacs so project-explorer can be opened automatically every time when I start Emacs? I tried (setq project-explorer t) and it didn't work.

sabof commented 9 years ago
(let ((default-directory "~/my-project/"))
  (project-explorer-open))
windweller commented 9 years ago

Thank you!!

windweller commented 9 years ago

Wait....can it detect current directory?

sabof commented 9 years ago

I'd think if you just write (project-explorer-open), it will open the directory emacs was started in. But you'll have to be careful where you open emacs -- you probably don't want your entire harddrive cached.