From: Peng Li Date: Fri, 3 Mar 2017 15:58:10 +0000 (+0800) Subject: emacs - fix install file bug X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=a6221472b3ff2a3992aeb44fb70dad09f5bc6113;p=dotfiles.git emacs - fix install file bug --- diff --git a/emacs.d/install.pl b/emacs.d/install.pl index ed92356..ab37e54 100755 --- a/emacs.d/install.pl +++ b/emacs.d/install.pl @@ -10,8 +10,8 @@ use Cwd "abs_path"; my $home = $ENV{'HOME'}; my $emacsDir = dirname abs_path (__FILE__); -die "~/.emacs.d or ~/init.el exist. Backup them first.\n" - if -e "$home/.init.el" or -e "$home/.emacs.d"; +die "~/.emacs.d or ~/.init.el or ~/.emacs exist. Backup them first.\n" + if -e "$home/.init.el" or -e "$home/.emacs.d" or -e "$home/.emacs"; print `ln -s $emacsDir $home/.emacs.d`;