branch: elpa/multiple-cursors
commit 97f7b1d5987fe091dfc556f3a62a8292241f420c
Merge: cec48cc 4969d38
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Merge pull request #197 from kissge/user-emacs-directory
Respect user-emacs-directory
---
multiple-cursors-core.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 54a993f..3330384 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -524,7 +524,11 @@ from being executed if in multiple-cursors-mode."
(overlay-put cursor 'kill-ring kill-ring)
(overlay-put cursor 'kill-ring-yank-pointer
kill-ring-yank-pointer)))))))
-(defvar mc/list-file "~/.emacs.d/.mc-lists.el"
+(defvar mc/list-file (expand-file-name
+ (concat (if (boundp 'user-emacs-directory)
+ user-emacs-directory
+ "~/.emacs.d/")
+ ".mc-lists.el"))
"The position of the file that keeps track of your preferences
for running commands with multiple cursors.")