Fork me on GitHub
#emacs
<
2017-03-03
>
qqq00:03:45

@dpsutton: interesting, thanks

qqq00:03:56

I ended up using this: (indent-region (point-min) (point-max))

dpsutton00:03:28

Check to see if indent region can be invokef without an arg

dpsutton00:03:45

It may default to the whole buffer

dpsutton00:03:01

Looks like it doesn't

dpsutton00:03:05

Requires the ARGS

qqq10:03:41

is there an projectile-imenu ?

qqq10:03:57

I'm looking for somethign like imenu, but imenu-anywehre only hits open buffers; whereas I want to hit all files under projectile

lepistane11:03:37

i've got problem

lepistane11:03:01

so i used brave and true setup

lepistane11:03:10

and i wanted to update cider

lepistane11:03:20

but it asked for 24.4 version

lepistane11:03:36

that tutorial

lepistane11:03:46

and now funny things happen

lepistane11:03:13

1. i couldnt install new cider so i found https://github.com/flyingmachine/emacs-for-clojure/ and used that to update it but i cant run it now

lepistane11:03:21

symbol's function definition is void : clojure-project-dir

lepistane11:03:02

i cant sudo apt-get remove emacs (because i already did that) but i still can use emacs 24.4?? i've deleted 24.3 ver using ubuntu software center before trying to install 24.4 how do i just reset everything and start again or just fix this?

munen13:03:46

@lepistane The install instructions from Brave and True are for a very old version of Cider. Better to ignore them. (Other than that, everything else in the book is very true, so no worries^^)

munen13:03:14

Since you just started out, it might be best to wipe your current emacs config completely.

munen13:03:29

rm -rf ~/.emacs.d/

munen13:03:53

Then make sure you have a current (>= 24.4) version of Emacs. For example I have:

emacs --version
GNU Emacs 24.5.1

munen13:03:06

Then follow the official cider install instructions: https://github.com/clojure-emacs/cider#installation

munen13:03:29

Basically: Ignore the Cider Install instructions from Brave and True and go for the official doc. Everything else in that books is current, though.

munen13:03:45

Good luck and enjoy your journey into Emacs and Clojure wonderland^^

dpsutton13:03:41

if you're looking for an up and running emacs setup with no fuss that is rock solid, check out prelude, from the same maintainer as CIDER. https://github.com/bbatsov/prelude

qqq13:03:54

@lepistane: if you want to be entertained, there was a chat here in #emacs a few weeks ago where someone (@dpsutton)? and I walked someone through un-insatlling brave+true

dpsutton13:03:41

yeah that was us

dpsutton13:03:05

it has compiled elisp files from cider 0.8.2 or so. also, it told you to install a lein profile file

dpsutton13:03:09

you should remove that file

dpsutton13:03:06

CIDER used to require you to set its dependencies but now it injects them itself. so that file will actually stipulate a mismatch of CIDER 0.15 (current on melpa) vs 0.8.2 which is from 2014

qqq13:03:32

we need a bot here that maps "brave.*and.*true" to "rm -rf /.emacs.d /.lein ~/.boot"

sineer15:03:54

@doglooksgood Thank you very much for your amazing Parinfer Mode!! I feel I must give a shout out to your project because I just started using it a few days ago and already I'm saving tons of time (and sanity) dealing with parens! I feel like I don't have to pay the parens tax todo lisp/clojure anymore, it is very liberating 🙂

sineer15:03:32

In case anyone don't know about this like I didn't a week ago check it out here: https://github.com/DogLooksGood/parinfer-mode

lepistane16:03:09

clean 24.4 installed m-x package-install cider - no match

lepistane16:03:47

m-x package-refresh-contents - does it's thing and still same

dpsutton16:03:31

can you tell us what package sources you have?

dpsutton16:03:40

if you don't have melpa you won't see it

dpsutton16:03:52

(add-to-list 'package-archives
             '("melpa" . ""))

lepistane16:03:11

i dont even have init.el file

lepistane16:03:13

should i make one?

lepistane16:03:35

just like gedit ~/.emacs.d/init.el then add those lines and save?

dpsutton16:03:38

if you want to "remember things"

dpsutton16:03:47

i think you should use a prebuilt one though

lepistane16:03:38

ye i think you are right i am complete beginner in emacs/linux/clojure

dpsutton16:03:54

the one i linked has a install sccript

dpsutton16:03:59

is made by the author of CIDER

dpsutton16:03:01

and is quite nice

dpsutton16:03:18

yeah you don't want to fight stuff and figure out your own init right now

lepistane16:03:34

holy moly finally xD

lepistane16:03:40

thanks a lot!!!

lepistane16:03:22

prelude looks nice theme is cool 😄

dpsutton16:03:40

it's my setup

lepistane16:03:41

one questions i dont have suggestions in minibuffer when i type m-x is that some kind of plug in or?

dpsutton16:03:44

and it works

dpsutton16:03:51

yeah. look into helm

lepistane17:03:02

i have no idea how to turn it on

lepistane17:03:23

it is included in prelude

dpsutton17:03:07

the first sentence > Helm is setup according to this guide: A Package in a league of its own: Helm.

dpsutton17:03:25

but you'll need to know a few precursors

dpsutton17:03:37

so you'll want a file to keep your own stuff and customizations in

dpsutton17:03:55

and for prelude, that file lives at ~/emacs.d/personal/personal.el

dpsutton17:03:05

and that's where you can set all of your config stuff

dpsutton17:03:10

(require 'helm-config)
(helm-mode 1)

dpsutton17:03:52

(global-set-key (kbd "M-x") 'helm-M-x)

dpsutton17:03:59

you'll probably want all of those

dpsutton17:03:11

and then there are ones that set helm for buffer list and other things

richiardiandrea18:03:44

is there are way to see what comint-mode is sending to its buffer ?

hlolli19:03:13

I think some modes bypass comnit-mode commands and send commands straight to the tty stdin from the generated process. At least I did that when I made a major mode recently.

richiardiandrea20:03:56

@hlolli I am running inf-clojure and I would like to debug what is being sent because there is a bug somewhere

hlolli20:03:56

@richiardiandrea I know 🙂 I've manually turned off many inf-clojure features.

hlolli20:03:34

you said you were working on lumo mode for emacs, how's that going?

richiardiandrea20:03:36

I have a PR going @hlolli it requires some change but it works locally pretty well

hlolli20:03:34

you have a git for me to try 😛

qqq21:03:16

anyone else unable to install magit due to: https://melpa.org/packages/magic-20170228.1717.tar : Not found ?

tanzoniteblack21:03:33

@qqq generally that happens if your melpa package list is out of date. package-refresh-contents should cause it to try to download the most recent version (and melpa only seems to keep the most recent versions)

tanzoniteblack21:03:43

at least, that's when errors like that have happened to me before, yours could be entirely unrelated 🙂

qqq21:03:37

I just did a rm -rf elpa, and it worked after that

qqq21:03:51

but I do think you're right, in taht melpa only keeps latest right? so if I had something pinnned to an out dated version, I can no longer retrieve it

tanzoniteblack21:03:17

I've also seen it do that when you try to run package-install without having refreshed the package list in a little while, it tries to grab the specific version that it last knew about

qqq21:03:03

so I have a line in my .emacs.d that says:

(unless package-archive-contents
  (package-refresh-contents))
given how infrequently I restart emacs, should I jiust chagne it to:
(package-refresh-contents)
the only downside is that i tmakes a download every time I start emacs right?

tanzoniteblack21:03:30

Nah, you shouldn't need to do that. Generally the cases where your package-archive-contents are null are the majority cases where you want to download and install a package

tanzoniteblack21:03:06

so that line's still fine in your config; just remember that if you're trying to install a new package, to make sure to run package-refresh-contents first (or just if you see that error...then run it and try running the install command again)

qqq22:03:50

how can I tell use-package to load packages eaagerly?

qqq22:03:59

I want to use the package only for the sake of organizing configs, not for lazy loading

qqq22:03:17

looks like the solution si simply ":demand" ?

dpsutton22:03:26

that's what i'm reading

dpsutton22:03:32

that's exactly what you want there

dpsutton22:03:37

someone had the same idea as you

qqq23:03:21

I now have the worst bug ever; I'm not sure what change caused it, but right now, when I select somethign in helm, there's an oticable lag, like a 1sec lag before it opens the file I selected

qqq23:03:29

I have no idea how to even begin debugging this 😞