emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Change references to "~/.emacs.d" into `user-emacs-directory' ?
@ 2013-01-09 16:09 Nicolas Richard
  2013-01-09 16:59 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2013-01-09 16:09 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Not sure if this is of any importance, but since the variable
user-emacs-directory (a defconst) exists, maybe org-mode could use it
instead of "~/.emacs.d". It seems only relevant for MS-DOS systems,
though.

Nico.

From 4fb0ecaef07ca9d10e5a57bef19f3201a2c90097 Mon Sep 17 00:00:00 2001
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Date: Wed, 9 Jan 2013 16:41:12 +0100

* lisp/org-id.el (org-id-locations-file):
* contrib/lisp/org-track.el (org-track-directory):
* lisp/org-clock.el (org-clock-persist-file): Fix hardcoded reference to "~/.emacs.d".
---
 contrib/lisp/org-track.el | 2 +-
 lisp/org-clock.el         | 2 +-
 lisp/org-id.el            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/lisp/org-track.el b/contrib/lisp/org-track.el
index d058135..a44472e 100644
--- a/contrib/lisp/org-track.el
+++ b/contrib/lisp/org-track.el
@@ -72,7 +72,7 @@ time to time."
   :version "22.1"
   :group 'org)
 
-(defcustom org-track-directory "~/.emacs.d/org/lisp"
+(defcustom org-track-directory (concat user-emacs-directory "org/lisp")
   "Directory where your org-mode/ directory lives.
 If that directory does not exist, it will be created."
   :type 'directory)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 823eac8..92168bc 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -194,7 +194,7 @@ Emacs initialization file."
 	  (const :tag "No persistence" nil)))
 
 (defcustom org-clock-persist-file (convert-standard-filename
-				   "~/.emacs.d/org-clock-save.el")
+				   (concat user-emacs-directory "org-clock-save.el"))
   "File to save clock data to."
   :group 'org-clock
   :type 'string)
diff --git a/lisp/org-id.el b/lisp/org-id.el
index 5d8e5b0..b35ea5e 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -186,7 +186,7 @@ the link."
   :type 'boolean)
 
 (defcustom org-id-locations-file (convert-standard-filename
-				  "~/.emacs.d/.org-id-locations")
+				  (concat user-emacs-directory ".org-id-locations"))
   "The file for remembering in which file an ID was defined.
 This variable is only relevant when `org-id-track-globally' is set."
   :group 'org-id
-- 
1.8.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-12 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09 16:09 [PATCH] Change references to "~/.emacs.d" into `user-emacs-directory' ? Nicolas Richard
2013-01-09 16:59 ` Bastien
2013-01-12 16:45   ` Achim Gratz
2013-01-12 17:24     ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).