Open Here
Sometimes you want Emacs to start up in a directory, other than your home dir. You may have a project you're working on or you want to work a set of files in special dir.
You can easily achieve this by adding an entry to Emacs config file which resides in your home dir.
/home/stray/.emacs
Open the dot.emacs file using any plain text file editor (emacs?) and add the following:
; Start emacs in project directory
(setq default-directory "/home/stray/projects/")
Save your .emacs file.
Close and restart Emacs for changes to take effect.
Here I used projects as the directory Emacs will open in. You give it any directory name you wish.
Done.
Sometimes you want Emacs to start up in a directory, other than your home dir. You may have a project you're working on or you want to work a set of files in special dir.You can easily achieve this by adding an entry to Emacs config file which resides in your home dir.
/home/stray/.emacs
Open the dot.emacs file using any plain text file editor (emacs?) and add the following:
; Start emacs in project directory
(setq default-directory "/home/stray/projects/")
Save your .emacs file.
Close and restart Emacs for changes to take effect.
Here I used projects as the directory Emacs will open in. You give it any directory name you wish.
Done.
More
Contact
Submit
Premium