branch: elpa/multiple-cursors
commit 142fdd6534c888c29627d29cdf730870740536ee
Author: Magnar Sveen <[email protected]>
Commit: Magnar Sveen <[email protected]>
Use locate-user-emacs-file to find directory for .mc-lists.el
---
multiple-cursors-core.el | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 3330384..8971a42 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -524,11 +524,7 @@ 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 (expand-file-name
- (concat (if (boundp 'user-emacs-directory)
- user-emacs-directory
- "~/.emacs.d/")
- ".mc-lists.el"))
+(defvar mc/list-file (locate-user-emacs-file ".mc-lists.el")
"The position of the file that keeps track of your preferences
for running commands with multiple cursors.")