Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tidier workaround for uninstallable Erlang package

  • Loading branch information...
commit ba020d6de9e40d9ec8bcb212347e5457480d48c1 1 parent e32930b
@purcell authored
Showing with 3 additions and 7 deletions.
  1. +2 −6 init-elpa.el
  2. +1 −1  init.el
View
8 init-elpa.el
@@ -130,12 +130,8 @@ ARCHIVE is the string name of the package archive.")
(require-package 'yaml-mode)
(require-package 'paredit)
(require-package 'eldoc-eval)
-(defconst erlang-available
- (condition-case err
- (progn
- (require-package 'erlang)
- t)
- (error nil)))
+(ignore-errors
+ (require-package 'erlang))
(require-package 'slime)
(require-package 'slime-fuzzy)
(require-package 'slime-repl)
View
2  init.el
@@ -51,7 +51,7 @@
(require 'init-textile)
(require 'init-markdown)
(require 'init-csv)
-(when erlang-available
+(when (package-installed-p 'erlang)
(require 'init-erlang))
(require 'init-javascript)
(require 'init-sh)

0 comments on commit ba020d6

Please sign in to comment.
Something went wrong with that request. Please try again.