Use locate-user-emacs-file to find directory for .mc-lists.el

This commit is contained in:
Magnar Sveen 2015-05-26 09:07:50 +02:00
parent 66b1127489
commit 142fdd6534

View File

@ -524,11 +524,7 @@ from being executed if in multiple-cursors-mode."
(overlay-put cursor 'kill-ring kill-ring) (overlay-put cursor 'kill-ring kill-ring)
(overlay-put cursor 'kill-ring-yank-pointer kill-ring-yank-pointer))))))) (overlay-put cursor 'kill-ring-yank-pointer kill-ring-yank-pointer)))))))
(defvar mc/list-file (expand-file-name (defvar mc/list-file (locate-user-emacs-file ".mc-lists.el")
(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 "The position of the file that keeps track of your preferences
for running commands with multiple cursors.") for running commands with multiple cursors.")