ldnclj

Find us on #clojure-uk
2015-12-04T08:45:39.000322Z

Wow, it’s quiet in here. I wonder why?

benedek 2015-12-04T09:16:37.000324Z

everyone is at clojureX ;)

2015-12-04T09:25:33.000325Z

@benedek: oh yeah, should have raised my head over my laptop screen to see them 😉

benedek 2015-12-04T09:27:43.000326Z

👋

thomas 2015-12-04T10:37:06.000327Z

Yes.... We are all here. 😋

xlevus 2015-12-04T10:39:08.000328Z

I'm not. Got sick :(

mccraigmccraig 2015-12-04T11:06:38.000329Z

me either. deadlines 😞

2015-12-04T12:59:00.000330Z

Are there any emacs users in the house? Since Bozhidar’s talk yesterday, I thought I’d try emacs. As a hardfast vimer I issued the scary brew install emacs yesterday and have happily followed this excellent tutorial http://david.rothlis.net/emacs/customize_c.html

2015-12-04T13:00:06.000331Z

However, as typical for me, I wanted to jump ahead and install cider but it appears that I’ve hit this newb issue: http://stackoverflow.com/questions/29085937/package-refresh-contents-hangs-at-contacting-host-elpa-gnu-org80

2015-12-04T13:01:03.000333Z

I can follow the instructions but this seems such a glaring omission from the otherwise excellent tutorial, I wonder whether this really is the idiomatic fix?

mccraigmccraig 2015-12-04T13:06:59.000334Z

emacs user here @paulspencerwilliams

2015-12-04T13:07:39.000335Z

hey @mccraigmccraig cheers. I’ve just found the emacs channel but thought I’d keep it local first 😉

mccraigmccraig 2015-12-04T13:07:50.000336Z

are you starting from scratch or https://github.com/bbatsov/prelude ?

2015-12-04T13:08:01.000338Z

I hope I’m not keeping you away from your deadline!

mccraigmccraig 2015-12-04T13:08:23.000339Z

momentary distractions are a necessary part of killer deadlines 😉

2015-12-04T13:08:27.000340Z

from scratch. I’ve heard good things about prelude but wanted to understand what emacs was first if that makes sense?

2015-12-04T13:09:08.000342Z

hehe

2015-12-04T13:10:08.000343Z

Wow, so Bozhidar is the emacs version of T Pope 😉

mccraigmccraig 2015-12-04T13:10:16.000344Z

it does make sense - but one of the things emacs is is absolutely massive and ancient - so it's a lot of work to start from scratch

mccraigmccraig 2015-12-04T13:10:26.000345Z

pretty much :simple_smile:

mccraigmccraig 2015-12-04T13:11:00.000346Z

i gave up trying to maintain my own .emacs.d a while back - life is too short - i first subcontracted to emacs-live, and then prelude

2015-12-04T13:11:16.000347Z

okay. I knew emacs was big hence I thought it good to stay ‘pure’ but that might have been naive.

mccraigmccraig 2015-12-04T13:11:34.000348Z

prelude is nice because it leaves lots of stuff to the vanilla package manager, and doesn't do a lot of non 'emacsy' things

mccraigmccraig 2015-12-04T13:11:56.000349Z

what version did you get from brew ?

2015-12-04T13:12:37.000350Z

GNU Emacs 24.5.1

mccraigmccraig 2015-12-04T13:13:05.000351Z

that's the same as i'm running, also out of brew

mccraigmccraig 2015-12-04T13:13:21.000352Z

so no fundamental reason why you shouldn't be getting packages

2015-12-04T13:13:46.000353Z

okay. and my entire .emacs is

(set-keyboard-coding-system nil)

2015-12-04T13:14:10.000354Z

This was advised in the above tutorial.

mccraigmccraig 2015-12-04T13:14:20.000355Z

what does M-x package-list-packages do for you ?

2015-12-04T13:15:06.000356Z

ooh, it retreives lots of packages starting with ace-window.

2015-12-04T13:15:29.000357Z

the status-bar? (wrong name I’m sure) it still showing Contacting host: http://elpa.gnu.org:80 though

mccraigmccraig 2015-12-04T13:16:40.000358Z

ah, i think elpa may be your problem

2015-12-04T13:17:32.000359Z

Elpa is the main package repo?

2015-12-04T13:18:09.000360Z

and for instance, ace-windows isn’t coming from there?

mccraigmccraig 2015-12-04T13:18:20.000361Z

it was being v slow for me

mccraigmccraig 2015-12-04T13:18:31.000362Z

do M-x customize-group

mccraigmccraig 2015-12-04T13:18:37.000363Z

and give it the group package

mccraigmccraig 2015-12-04T13:18:56.000364Z

what do you have set as your package archives ?

mccraigmccraig 2015-12-04T13:19:25.000365Z

i've got <http://elpa.gnu.org/packages/> and <http://melpa.org/packages/>

2015-12-04T13:19:39.000366Z

this is in .emacs?

2015-12-04T13:20:02.000367Z

or should be?

mccraigmccraig 2015-12-04T13:20:30.000368Z

no, if you run M-x customize-group it will ask you (in the status window) which group you want to customize... give it package

mccraigmccraig 2015-12-04T13:20:53.000369Z

which will open a window with all the settings in it for the package manager

mccraigmccraig 2015-12-04T13:23:02.000371Z

open up package archives (nav to the arrow, and use return if you aren't using a gui version)

2015-12-04T13:23:16.000372Z

package archives lists

Archive name: gnu                                              
            URL or directory name: <http://elpa.gnu.org/packages/>     

2015-12-04T13:23:51.000373Z

so elpa is hard baked in as it’s not in .emacs

mccraigmccraig 2015-12-04T13:24:17.000374Z

it's a default... you can ditch it

2015-12-04T13:24:21.000375Z

cool.

mccraigmccraig 2015-12-04T13:24:37.000376Z

have a look in buffer *Messages* see if you are getting any errors in there

2015-12-04T13:25:08.000377Z

Importing package-keyring.gpg...done
Contacting host: <http://elpa.gnu.org:80|elpa.gnu.org:80>
Quit
Creating customization items...
Creating group...
Creating group entries...done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
Custom-newline: You can't edit this part of the Custom buffer
Search for custom items.
You can enter one or more words separated by spaces,
or a regular expression.
Search for custom items.
You can enter one or more words separated by spaces,
or a regular expression.
Show a menu with reset operations.
Apply settings (for the current session only).
Apply settings and save for future sessions.
Create customization buffer for this group.
Change the state of this item.
Show the value of this option.
Show or hide rest of the documentation.
Show the value of this option.

2015-12-04T13:25:14.000378Z

Nothing glaring

mccraigmccraig 2015-12-04T13:25:59.000379Z

when you did M-x package-list-packages what did you see in the *Packages* buffer ?

2015-12-04T13:26:35.000381Z

ace-window         0.9.0         available  Quickly switch windows.
  ack                1.5           available  interface to ack-like tools
  ada-mode           5.1.8         available  major-mode for editing Ada s$
  ada-ref-man        2012.0        available  Ada Reference Manual 2012
  adaptive-wrap      0.5           available  Smart line-wrapping with wra$
  adjust-parens      3.0           available  Indent and dedent Lisp code,$
  aggressive-indent  1.4           available  Minor mode to aggressively k$
  ahungry-theme      1.0.12        available  Ahungry color theme for Emac$
  all                1.0           available  Edit all lines matching a gi$
  ascii-art-to-un... 1.9           available  a small artist adjunct
  auctex             11.89         available  Integrated environment for *$
  aumix-mode         7             available  run the aumix program in a b$
  auto-overlays      0.10.9        available  Automatic regexp-delimited o$
  avy                0.3.0         available  set-based completion
  beacon             0.5.1         available  Highlight the cursor wheneve$
  bug-hunter         1.0.1         available  Hunt down errors by bisectin$
  caps-lock          1.0           available  Caps-lock as a minor mode
  chess              2.0.4         available  Play chess in GNU Emacs
  cl-generic         0.2           available  Forward cl-generic compatibi$
  coffee-mode        0.4.1.1       available  Major mode for CoffeeScript $
  company            0.8.12        available  Modular text completion fram$
  company-math       1.0.1         available  Completion backends for unic$
  company-statistics 0.2.2         available  Sort candidates using comple$
  context-coloring   7.2.0         available  Highlight by scope
  crisp              1.3.4         available  CRiSP/Brief Emacs emulator
  csv-mode           1.5           available  Major mode for editing comma$
  darkroom           0.1           available  Remove visual distractions a$
  dash               2.12.0        available  A modern list library for Em$
  dbus-codegen       0.1           available  Lisp code generation for D-B$

mccraigmccraig 2015-12-04T13:27:22.000382Z

ah, and do you only have a single package-archive (elpa) configured ?

2015-12-04T13:27:52.000383Z

that’s all that appeared in package archives. It would appear these packages are therefore available from elpa.

mccraigmccraig 2015-12-04T13:28:19.000384Z

those packages you are seeing are from elpa - the versions match my packages from elpa

mccraigmccraig 2015-12-04T13:29:11.000386Z

so emacs is getting package lists from elpa...

2015-12-04T13:29:31.000387Z

yeah, so I imagine it is no working but was confused me was it still showing

connecting….
so it appeared it wasn’t working.

mccraigmccraig 2015-12-04T13:29:44.000388Z

ah... what happens to the 'contacting host...' message when you move the cursor ?

mccraigmccraig 2015-12-04T13:29:52.000389Z

does it disappear then ?

2015-12-04T13:30:34.000390Z

Yes!

mccraigmccraig 2015-12-04T13:30:54.000391Z

my emacs also seems to leave the message there until you next move the cursor, and then it disappears... presumably it's doing that so you don't miss messages when you aren't paying attention or maybe it's random

mccraigmccraig 2015-12-04T13:31:26.000392Z

try installing one of the packages from the list you get with M-x package-list-packages ... i think everything is actually working ok !

2015-12-04T13:31:29.000393Z

yeah, cheers for identifying that! confusing but understandable. The pitfalls of swapping religion!

mccraigmccraig 2015-12-04T13:32:35.000394Z

i don't think anyone, other than perhaps RMS, would say that emacs wasn't confusing 😉

mccraigmccraig 2015-12-04T13:33:05.000395Z

though i've found it worth weathering the confusion, because it's certainly not just confusing

2015-12-04T13:33:40.000396Z

hehe, right. Cider isn’t available from elpa

mccraigmccraig 2015-12-04T13:34:07.000397Z

add melpa to your packages list - there are much more recent packages on melpa

2015-12-04T13:34:09.000398Z

that was why I initially did a package-list-packages which initially failed which may have been intermittent issues here.

mccraigmccraig 2015-12-04T13:34:31.000399Z

<http://melpa.org/packages/>

2015-12-04T13:35:41.000400Z

And there’s a command to add archives?

mccraigmccraig 2015-12-04T13:36:07.000401Z

use the customize-group invocation i gave you earlier...

2015-12-04T13:36:19.000402Z

okay. Wil play. Thank you.

mccraigmccraig 2015-12-04T13:36:39.000403Z

and save the customization for future-sessions :simple_smile:

2015-12-04T13:37:19.000404Z

oh, pointers in saving this?

mccraigmccraig 2015-12-04T13:38:25.000405Z

there's a state button for the option in the customize-group screen... push it to get the list of actions

mccraigmccraig 2015-12-04T13:39:38.000406Z

you can do all this by editing your .emacs, but the set of options is so massive it's often easier to let the customize screens do it for you the first time, then fiddle with the elisp it spits out into your .emacs (when you save-for-future-sessions)

mccraigmccraig 2015-12-04T13:41:55.000407Z

and try out prelude too - you get a lot of stuff which makes emacsing nicer bundled and configured for free

mccraigmccraig 2015-12-04T13:42:32.000408Z

back to my deadline ! :robot_face:

2015-12-04T13:42:40.000409Z

thank you greatly!

2015-12-04T13:59:32.000410Z

@mccraigmccraig: whoop - it worked, although melpa is now https :simple_smile: