Change source directory to emacs, plus some starter tips
how can i change the source directory to emacs (i started using it today and there is a lot to learn !!), now i use MX cd and then change the directory i use for Cx Cf but in my daily work i will use heavily one specific directory so i need to make the change permanent ... also if you have some tips for a starter it would be nice
a source to share
To set the default directory just put
(cd "/default/path/")
in the ~ / .emacs file.
Emacs has a steep learning curve, but with continued use, the most common commands will soon become second nature. As you discover more, emacs can become your favorite text editor, file manager and email reader :)
To learn emacs, I would start by clicking C-h t
to start plowing through a great tutorial. Take a notebook with you and write down the commands when you recognize them. At first, you will use the crib sheet, but after a while, as I said, your fingers will learn key combinations without your brain deliberately interfering.
Good luck and have fun!
a source to share
The default directory is determined by:
(setq default-directory "~/")
in this case it is installed in the users home directory, but it may be elsewhere.
If this variable is not set, the loading starting point for find file will be the directory where the emacs executable lives.
EDIT: On Windows it is possible to define a global HOME environment variable (HOME = c: \ path \ to \ user \ home \ directory), ensuring that Emacs translates ~ to the correct value. This allows Emacs settings to be used across platforms.
a source to share
If you are running emacs, take a look at the Emacs Starter Kit:
http://github.com/technomancy/emacs-starter-kit
It doesn't have any information about the tutorial, but it sets up key bindings in a way that is slightly better than the default. I also learned the stuff just by reading the startter-kit-bindings.el file.
a source to share
I like the GNU Emacs page for a beginner's introduction to Emacs and what you can get out of it.
a source to share
This is a Windows specific solution.
- Create a shortcut for
emacs.exe"
called GNU Emacs - Open properties in GNU Emacs shortcut
- Install Start from on
%USERPROFILE%\Documents
This solution works for multi-user workstations, regardless of whether Active Directory is enabled or disabled.
This shortcut will launch Emacs in the current User Documents folder.
a source to share