From c32b594244def4751b3ce91b1d3ef162404e4e71 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 26 Dec 2014 01:19:58 +0900 Subject: [PATCH] emacs.el: reload-init-file: Reload init file only if available --- emacs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 2645054..ad4cb41 100644 --- a/emacs.el +++ b/emacs.el @@ -301,7 +301,8 @@ found, otherwise returns nil." (defun reload-init-file () "Reload Emacs init file." (interactive) - (when (file-readable-p user-init-file) + (when (and user-init-file + (file-readable-p user-init-file)) (load-file user-init-file))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -871,6 +872,7 @@ found, otherwise returns nil." ;; (< emacs-major-version 24) (fetch-library "http://www.emacswiki.org/emacs/download/xclip.el" t) (require 'xclip nil t) + nil (turn-on-xclip)) (and (eq system-type 'darwin)