customization - Changing the default folder in Emacs -
i new emacs , have been trying figure out how change default folder c-x c-f on start-up. instance when first load emacs , hit c-x c-f default folder c:\emacs\emacs-21.3\bin
, rather desktop. believe there way customize .emacs
file this, still unsure is.
update: there 3 solutions problem found work, believe solution 3 windows only.
solution 1: add
(cd "c:/users/name/desktop")
.emacs
filesolution 2: add
(setq default-directory "c:/documents , settings/user_name/desktop/")
.emacs
filesolution 3: right click emacs short cut, hit properties , change start in field desired directory.
you didn't so, sounds you're starting emacs windows shortcut.
the directory see c-x c-f cwd, in emacs terms, default-directory
(a variable).
when start emacs using ms windows shortcut, default-directory
folder (directory) specified in "start in" field of shortcut properties. right click shortcut, select properties
, , type path desktop in start in
field.
if you're using emacs command line, default-directory
starts directory started emacs (the cwd).
this approach better editing .emacs file, since allow have more 1 shortcuts more 1 starting directory, , lets have normal command line behavior of emacs if need it.
cwd = current working directory = pwd = present working directory. makes lot more sense @ command line in gui.
Comments
Post a Comment