Add OS-specific default-directory setting
This commit is contained in:
parent
ceb4e9077d
commit
386abb696e
6
init.el
6
init.el
@ -73,6 +73,12 @@
|
||||
c-default-style "bsd"
|
||||
)
|
||||
|
||||
;; (OS-specific) Set the default working directory.
|
||||
(if (or (eq system-type 'windows-nt)
|
||||
(eq system-type 'ms-dos))
|
||||
(setq default-directory (getenv "USERPROFILE"))
|
||||
(setq default-directory "~/"))
|
||||
|
||||
;; Disable some unnecessary byte compilation warnings.
|
||||
(setq byte-compile-warnings '(not
|
||||
free-vars
|
||||
|
Loading…
Reference in New Issue
Block a user