Skip to content

Commit

Permalink
Make the loading of my-emacs-server more brief.
Browse files Browse the repository at this point in the history
load-library will return 'nil if it failed, no need to check the path first as we alway load
  • Loading branch information
stsquad authored and Alex Bennee committed Aug 22, 2009
1 parent 79cc9d9 commit 844d6bb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dotemacs
Expand Up @@ -94,12 +94,8 @@
"Load my-emacs-server if possible in response to a -server argument
on the command line"
(interactive)
(if (locate-library "my-emacs-server")
(progn
(load-library "my-emacs-server")
(my-server-start))
(message (format "Skipping my-emacs-server %S"
(locate-library "my-emacs-server")))))
(if (load-library "my-emacs-server")
(my-server-start)))

(add-to-list 'command-switch-alist '("--server" . load-my-server))

Expand Down

0 comments on commit 844d6bb

Please sign in to comment.