Fork me on GitHub
#emacs
<
2017-01-16
>
qqq02:01:05

how do I say : here is a list of packages I want; if they're not installed, please package-install them?

benedek06:01:48

check out use-package

benedek06:01:22

and its :ensure option

beppu06:01:56

@qqq Also, the package-install function seems to already check to if a package is installed and will return early if so. You could do something like:

(setf my-packages '(livescript-mode clojure-mode))
(mapcar (lambda (p) (package-install p)) my-packages)

beppu06:01:40

If you really want to check if a package is installed yourself, you could use package-installed-p:

(package-installed-p 'clojure-mode)

qqq06:01:32

are you guys using 24 or 25? I just switched from OSX (25) to ubuntu

qqq06:01:37

and not sure if it's worth installing 25 from source

beppu07:01:03

I'm using 25.1.1

beppu07:01:08

(on ubuntu)

beppu07:01:36

It looks like I compiled from source.

beppu07:01:08

The version packaged w/ Ubuntu 16.04.1 (Emacs 24.3) wasn't good enough for Spacemacs which requires 24.4+.

qqq07:01:02

@beppu I just got 25.1 compiled

qqq07:01:16

Are you also stuck with the "gtk / multi monitor close emacs may crash bug" ?

benedek07:01:22

cider requires 24.4+ afaik too

beppu07:01:19

@qqq I haven't experienced that bug yet.

qqq08:01:55

https://github.com/ch11ng/exwm <-- anyone used htis? I used to be xmonad + vim; now emacs + no window manager; but this would make so much sense

qqq08:01:02

why not script winow manager in elisp too?

qqq08:01:43

bad signture from gnu elpa on xelb

qqq09:01:27

========== is there a way to fire off an chrome/firefox from emacs (but have emacs not wait for it to finish) ?