{"id":19,"date":"2019-09-07T15:07:07","date_gmt":"2019-09-07T15:07:07","guid":{"rendered":"http:\/\/blog.theopenpc.com\/?p=19"},"modified":"2019-09-07T15:07:07","modified_gmt":"2019-09-07T15:07:07","slug":"emacs-d","status":"publish","type":"post","link":"https:\/\/blog.theopenpc.com\/index.php\/2019\/09\/07\/emacs-d\/","title":{"rendered":".emacs.d\/"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><a href=\"https:\/\/www.emacswiki.org\/emacs?search=%22DotEmacsDotD%22\">DotEmacsDotD<\/a><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">The directory&nbsp;<code>~\/.emacs.d\/<\/code>&nbsp;is a standard location for&nbsp;<strong>additional per-user Emacs-specific files<\/strong>. Various packages store information in this directory. Since it is located in the home directory (<code>~\/<\/code>), it is unique for each user, just like the&nbsp;<code>~\/.emacs<\/code>&nbsp;<a href=\"https:\/\/www.emacswiki.org\/emacs\/init_file\">init file<\/a>. Note that as&nbsp;<code>.emacs.d<\/code>&nbsp;begins with a dot, it is normally&nbsp;<strong>hidden<\/strong>&nbsp;on Unix systems and only turns up in directory listings if all files and folders are shown (<code>ls -a<\/code>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starting with Emacs 22, if&nbsp;<code>~\/.emacs<\/code>&nbsp;does not exist, Emacs will try&nbsp;<code>~\/.emacs.d\/init.el<\/code>&nbsp;and&nbsp;<code>~\/.emacs.d\/init.elc<\/code>. You can also put the shell init file&nbsp;<code>.emacs_SHELL<\/code>&nbsp;under&nbsp;<code>~\/.emacs.d<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starting with Emacs 23, the variable&nbsp;<code>user-emacs-directory<\/code>&nbsp;holds the location of&nbsp;<code>.emacs.d<\/code>. On&nbsp;<strong>Windows<\/strong>, the location depends on the&nbsp;<code>HOME<\/code>&nbsp;environment variable: if set to&nbsp;<code>C:\\<\/code>, then&nbsp;<code>.emacs<\/code>&nbsp;is located at&nbsp;<code>C:\\.emacs<\/code>&nbsp;and&nbsp;<code>.emacs.d<\/code>&nbsp;at&nbsp;<code>C:\\.emacs.d<\/code>. On Windows 7 the default is C:\\Users\\epich\\<a href=\"https:\/\/www.emacswiki.org\/emacs\/AppData\">AppData<\/a>\\Roaming\\.emacs and .emacs.d where&nbsp;<strong>epich<\/strong>&nbsp;is your username.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The user directory itself is not part of&nbsp;<code>load-path<\/code>, and since it contains other things than libraries, you should leave it at that. Instead, you should install packages in a dedicated sub-directory (e.g.,&nbsp;<code>~\/.emacs.d\/elisp<\/code>) and&nbsp;<a href=\"https:\/\/www.emacswiki.org\/emacs\/LoadPath#AddSubDirectories\">add that<\/a>&nbsp;to the&nbsp;<code>load-path<\/code>&nbsp;instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ref: <a href=\"https:\/\/www.emacswiki.org\/emacs\/DotEmacsDotD\">https:\/\/www.emacswiki.org\/emacs\/DotEmacsDotD<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DotEmacsDotD The directory&nbsp;~\/.emacs.d\/&nbsp;is a standard location for&nbsp;additional per-user Emacs-specific files. Various packages store information in this directory. Since it is located in the home directory&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":1,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":20,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions\/20"}],"wp:attachment":[{"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.theopenpc.com\/index.php\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}