Re: Emacs - error with `nrepl-jack-in'

2014-04-18 Thread greg r
You should consider going to CIDER:

https://github.com/clojure-emacs/cider

The command is 'cider-jack-in'.

Here's a page with a lot of install info:

http://clojure-doc.org/articles/tutorials/emacs.html

There are many web pages out there with obsolete information on Clojure and 
emacs.
The above page is one of the most up-to-date.

Regards,
Greg

On Thursday, April 17, 2014 9:45:13 PM UTC-4, Thorsten Jolitz wrote:
>
>
> Hi List, 
>
> just installed lein2 and can start 'lein2 repl' successfully on the 
> command-line. 'lein repl' works too, since I defined an alias in my 
> .bashrc. 
>
> After installing packages clojure-mode and nrepl in Emacs, I get this 
> error when trying `nrepl-jack-in': 
>
> ,- 
> | error in process sentinel: Could not start nREPL server: /bin/bash: Line 
> | 1: lein: Command not found. 
> `- 
>
> I'm on Archlinx with 
>
> #+begin_src emacs-lisp 
>  (emacs-version) 
> #+end_src 
>
> #+results: 
> : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7) 
> :  of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen 
>
> I googled some related sites and it seems it might be an Emacs (exec-) 
> path 
> problem, but a reboot did not help. 
>
> -- 
> cheers, 
> Thorsten 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: alternative syntax for Clojure? Haskell?

2014-04-05 Thread greg r
I can't answer your question from my own experience, but there does seem to 
be a way to develop your own language on the JVM:

https://www.eclipse.org/Xtext/index.html

You could create a "DSL" to your precise specifications.

Regards,
Greg


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help about using clojure in org mode in Emacs with CIDER

2014-02-02 Thread greg r
The worg documentation for the Clojure language has been updated:
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html

The installation instructions should result in a current 
Clojure/CIDER/clojure-mode/Leiningen system.

Regards,
Greg

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-28 Thread greg r
Hi Bastien, yes I will post a report at the mailing list today.

Regards,
Greg

On Tuesday, January 28, 2014 12:55:20 AM UTC-5, Bastien Guerry wrote:
>
> Hi Greg, 
>
> greg r > writes: 
>
> > I compared a computer set up with the latest of everything (org/emacs 
> > /CIDER) and compared to an older computer still using nrepl-jack-in 
> > and older versions of everything else.  The behavior is definitely 
> > different with the newer system, and can be seen with a very simple 
> > case: 
>
> Can you report this to the org-mode mailing list? 
> https://lists.gnu.org/mailman/listinfo/emacs-orgmode 
>
> Thanks, 
>
> -- 
>  Bastien 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-27 Thread greg r
I compared a computer set up with the latest of everything 
(org/emacs/CIDER) and compared to an older computer still using 
nrepl-jack-in and older versions of everything else.  The behavior is 
definitely different with the newer system, and can be seen with a very 
simple case:

Code block:
#+begin_src clojure :results value raw
[1 2 3 4]
#+end_src

New: (CIDER)
#+RESULTS:
[1 2 3 4]

Old: (nrepl)
#+RESULTS:
| 1 | 2 | 3 | 4 |

It appears the conversion to org table is not happening.

Regards,
Greg

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help about using clojure in org mode in Emacs with CIDER

2014-01-23 Thread greg r
We had a discussion about this in the cider-emacs group:

https://groups.google.com/forum/#!topic/cider-emacs/xj-HYTAA-D0

Bastien's page on using Overtone with Clojure in org code blocks is very 
informative with regards to setting it all up:

http://bzg.fr/emacs-org-babel-overtone-intro.html

Note that the worg page for Clojure is out of date:

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html

This references swank-clojure which is depracated.
I would like to edit this page to bring it up to date with Cider, and I 
would like to help
as soon as I figure out the process with keys and git!

Good luck with org-mode, cider and Clojure code blocks.  It's a great way 
to code and experiment, as well
as create dynamic documents.  I've had very good results with the system.

Regards,
Greg

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Linux Journal July "Intro to Clojure on the Web"

2013-07-01 Thread greg r
by Reuven Lerner.  10 pages.  Compojure is next.

http://www.linuxjournal.com/content/july-2013-issue-linux-journal-networking

Regards,
Greg

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Accessing JSON Array data in Clojure

2013-05-07 Thread greg r
You might want to check out "Clojure Data Analysis Handbook" by Eric 
Rochester.  There is an example using org.clojure/data.json and Incanter to 
read JSON format into an Incanter dataset.  You might find other recipes in 
the book useful as well:

http://www.packtpub.com/clojure-data-analysis-cookbook/book

I'm going through it (slowly) and learning a lot.  It's not a beginner's 
book.  Full blast functional programming for sure.

Regards,
Greg

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-05 Thread greg r
I think I was wrong about the extra elisp code required for nrepl to 
evaluate babel Clojure code blocks.  This was from last year:

https://groups.google.com/forum/?fromgroups=#!searchin/nrepl-el/babel/nrepl-el/txLYH9tH6AU/hj0NkyF8YZ8J

I checked my .emacs file and the extra code for clojure babel is commented 
out, so the later versions of nrepl must have this feature included.
Too many months ago, I really need to put better notes and comments in my 
.emacs file!

Greg

On Monday, March 4, 2013 4:25:23 PM UTC-5, Mark C wrote:
>
> Very cool. Great looking doc! I just installed LaTeX and TeXworks so it's 
> off to play. (Other than incanter I already have the rest working, 
> including nrepl -  though I have to start up nrepl with nrepl-jack-in. Is 
> that what you were planning on doing? It would be cool to have it launched 
> by the first compile!).
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-03 Thread greg r
Here's a little project I worked on:

https://github.com/Greg-R/incanterchartcustom

I'm just now learning git, so I hope the files are intact in the 
repository.  I cloned to another machine and they appear to be OK.

The Incanter chart PDF document shows what is possible with regard to 
documenting code and showing a nice export result.
The repository also includes the source .org file.  In theory, if you have 
everything set up correctly you can reproduce the
PDF document exactly.  Since it is generating PDF charts, there are lots of 
side-effects and whatever directory you are running
in will get filled up with the chart files.  I used LaTeX snippets within 
the org file to include the chart graphics in the exported tex
file and thus the eventual PDF.

I don't use C-c C-e p.  This doesn't always work, and I prefer C-c C-e l 
which exports the .tex file only.  I open the .tex file with
the Texworks application which has worked really well for me for editing 
LaTeX documents.  Texworks has the ability to jump between
the PDF and the .tex file and vice-versa, which makes troubleshooting much 
easier.

I did a bunch of data processing for work using org, Clojure, and Incanter 
to produce reports in PDF.  I created several Leiningen projects
to attack various aspects of the data manipulation.  Then within Clojure 
code blocks in org, the various namespaces are used to process
data at the appropriate points in the document.  None of the output was 
inserted directly into the org file.  That turned out to be impractical
as some of the generated documents were hundreds of pages long.  The 
Clojure/Incanter code chunks generated .tex files which were included
in the exported output via LaTeX code blocks.  Really in this case the 
org-babel system operated more as a document/code organizer than
as a programming system.  But what an organizer it is!!!  I saved hundreds, 
maybe thousands of man hours of manual document generating.

There were several technologies to learn to get it all to work in harmony:

Clojure
Incanter
Emacs (24.2) (including some Elisp in the .emacs file)
org
babel
Leiningen
LaTeX
Texworks
nrepl (this will require some extra stuff in the .emacs file to get babel 
to work)

It took a lot of work, but I think the org-babel system is really worth it!

Regards,
Greg

On Saturday, March 2, 2013 11:52:07 PM UTC-5, Mark C wrote:
>
> Worked like a charm. Thanks!
>
> Babel is fun. I really like the idea of being able to code in multiple 
> languages in one document - and have return values from one feed another. 
> And I just found out you can include TeX too - just starting to play with 
> that. I'd love to hear more about how you use clojure and org mode together.
>
> Mark
>>
>>
>>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure 1.5 print-table, org-mode babel, and org-mode HTML gen

2013-03-02 Thread greg r
Try adding

:results value raw

 to your options.
Here is what the org manual says:

The results are interpreted as raw Org mode code and are inserted directly
into the buffer. If the results look like a table they will be aligned as 
such by Org mode.

org is a fantastic environment for playing with Clojure.  I've got a lot 
done with it.

Regards,
Greg

On Friday, March 1, 2013 11:29:17 PM UTC-5, Mark C wrote:
>
> Sorry in advance if this doesn't turn out to be a clojure-specific 
> problem, but this seemed like a reasonable place to ask..
>
> Context: I'm a heavy org-mode user, so Mike Fogus' recent "usesthis" 
> postmentioning org-mode babel was quite 
> interesting. I got babel working fine 
> (for clojure, elisp, sh) then recalled that print-table in Clojure 1.5 
> outputs in org-mode compatible table format. Awesome. So naturally I'd like 
> to generate nice looking tables using something like:
>
> #+begin_src clojure :exports both
> (with-out-str (print-table [{:a 1 :b 2 :c 3} {:b 5 :a 7 :c "dog"}]))
> #+end_src
>
> (Using with-out-str is needed because print-table of course returns nil)
>
> But what I get when generating HTML (via "C-c C-e b") is not a table, but 
> the literal text of the table markup. I.e. compiling the above source block 
> yeilds:
>
> #+RESULTS: clojure-org-table
> : 
> : | :a |  :c | :b |
> : |+-+|
> : |  1 |   3 |  2 |
> : |  7 | dog |  5 |
>
> This makes sense. But how might one go about getting an HTML table 
> generated?
>
> I can edit the results show above and add some attributes before HTML 
> generation, e.g.
>
> #+CAPTION: This is a table with lines around and between cells
> #+ATTR_HTML: border="2" rules="all" frame="border"
> | :a |  :c | :b |
> |+-+|
> |  1 |   3 |  2 |
> |  7 | dog |  5 |
>
> This yields a nice looking table in HTML, but I would like to eliminate 
> this manual step. Any ideas??
>
> Thanks,
> Mark
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to read a txt file?

2013-02-01 Thread greg r
slurp works well, however, it reads the file in as a single string.  The 
result may not be readily useable depending on what you are doing.
 
I read in text files using clojure.java.io functions plus the core function 
line-seq.  What you get is a sequence whose elements are the individual 
lines of the file.
Then you can apply the power of the Clojure sequence library functions to 
the problem you are trying to solve.
This gets the text file directly to a data structure which is easily 
processed.
 
Here's a quick example function:
 
(use 'clojure.java.io)
 
(defn grab-file [file-path]
 (with-open [text-file-reader (reader file-path)]
   (do-all (line-seq text-file-reader
 
This returns a sequence of strings.  The file-path parameter is a string 
which is the path to the file.
Other functions in clojure.java.io are very useful for dealing with files.
Note the reader function is wrapped in a with-open function to make sure it 
is properly closed.
 
Regards,
Greg
 
 

On Friday, February 1, 2013 7:17:43 AM UTC-5, Roger75 wrote:

> I'd like to read a txt file using clojure. How do I do that? Any examples?

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn.  From the documentation:

http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn

Regards,
Greg

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Using functions from Java packages

2012-12-17 Thread greg r
Another possibility is the macro memfn.  From the documentation:

http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/memfn

Regards,
Greg

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Clojure : a good start for non-programmers?

2012-09-26 Thread greg r

I would go with the book "Simply Scheme, Introducing Computer Science" by 
Harvey and Wright.
Install the Racket system on your computer, and have at it.

http://racket-lang.org/

Once you come up to speed on Scheme, you will have no trouble with core 
Clojure.
But if you venture in the the Java interop, you will have to understand 
object oriented programming.
A good resource for Java is "Objects First with Java, A Practical 
Introduction using BlueJ".

Also you can want watch the Brian Harvey lectures on functional programming 
on Youtube.
Good luck, functional programming is challenging and fun.

Regards,
Greg

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: slime-ritz help needed on clean emacs 24.2.1 new setup

2012-09-20 Thread greg r
How about trying:

nrepl-jack-in

This is working good here, at least from within a leiningen project.

Regards,
Greg

On Saturday, September 15, 2012 2:39:36 AM UTC-4, sal wrote:
>
> Hi Everyone,
>   Trying to setup emacs 24.2 on mac osx clean setup, nothing else.
>
>   clojure-mode 20120808 installed  Major mode for Clojure code 
> [source: github]
>   nrepl 20120912.248 installed  Client for Clojure nREPL [source: 
> github]
>   nrepl-ritz 20120913 installed  nrepl extensions for ritz 
> [source: github]
>   slime-ritz 20120914 installed  slime extensions for ritz 
> [source: github]
>
> I have following things installed
>
> and my .emacs looks like
> (require 'package)
> (add-to-list 'package-archives
>   '("marmalade" . "http://marmalade-repo.org/packages/";) t)
> (add-to-list 'package-archives
>   '("melpa" . "http://melpa.milkbox.net/packages/";) t)
> (package-initialize)
>
>
> i am able to run clojure-jack-in and start swank server, but never see the 
> command slime-mode, slime-connect in emacs.
>
> Can someone point me to some other setup or how to fix this.
>
> Thanks
>  Sal
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Found bug in contains? used with vectors.

2012-09-03 Thread greg r
You could try the function some.

=> (some #{3} [1 2 3])
3
=> (some #{3} [1 2 5])
nil

This uses a set as a predicate function.

Greg

On Monday, September 3, 2012 7:03:07 AM UTC-4, Goldritter wrote:
>
> I use Clojure 1.4.0 and wanted to use 'contains?' on a vector and get 
> following results:
>
> => (contains? [1 2 3] 3)
> false
> => (contains? [1 2 3] 2)
> true
>
> As it seems 'contains?' does not check for the last entry in the vector.
>
> And an other question.
> Why does contains? returns everytime 'false' when used on a list?
> => (contains? (list 1 2 3) 1)
> false
> => (contains? (list 1 2 3) 2)
> false
> => (contains? (list 1 2 3) 3)
> false
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: using "lein repl" as the Emacs Inferior Lisp REPL as opposed to a custom script that does "java -jar clojure-1.4.0.jar"

2012-08-26 Thread greg r
Hello, I am also using Leiningen in Ubuntu, and I feel your pain.
One thing I would suggest is to remove anything related to your tool chain 
which was installed by Ubuntu.
(except maybe emacs 24.x).
You clearly have Clojure installed via the usual Ubuntu Software Center or 
related mechanism.
Uninstall it!

I would skip directly to version 2 of Leiningen.
You will find that dependency jars get dropped into the hidden file 
~/.m2/repository,
for example, when you use the "lein install" command that is where they go.

Get clojure mode via the emacs package manager.  Get the latest!
I got stuck on an old version which caused much confusion.  I still see 
version 1.7.1
in the list of packages, whereas I have installed version 1.11.5.  I 
believe this is
due to my .emacs file setting package archives for ELPA, gnu, and 
marmalade, and
some obsolete stuff still exists and hazardous to the newbie.

I don't have anything related to slime or swank or swank-clojure installed 
via the
emacs package manager.  However, I do have lein-swank listed in my 
~/.lein/profile.clj
file.

Another thing to uninstall are any version of slime and swank which were 
installed
via the "Ubuntu Software Center".  These caused lots of confusion.  This 
stuff may
also be hanging out in your ~/.emacs.d directory.

I installed version 24.x emacs manually.  I'm not familiar with Ubuntu 
Precise, but perhaps
that distribution is installing a usable version of emacs.  I had to 
install a few libraries
to get it all going, I think some X window related stuff using the Synaptic 
Package Manager.

M-x clojure-jack-in is the way to fire up a repl running in an emacs buffer.

I've got a working installation, it's easy to use and powerful, but if I 
said I could start from
scratch again and make it work in 5 minutes I would be a liar.  I think the 
best thing to do is a thorough
housecleaning, start from scratch with version 2 leiningen, emacs 24 and 
latest clojure-mode.

Good luck!  I'm test driving nrepl next.
Greg




-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Idiomatic usage of partial

2012-05-17 Thread greg r
The reader notation is limited to the arity of the number of arguments 
provided.  partial allows variable arity.
Check out pages 67-68 of "Clojure Programming".

Regards,
Greg

On Wednesday, May 16, 2012 1:57:40 PM UTC-4, Murtaza Husain wrote:
>
> Hi,
>
> What is the idiomatic use of partial. I understand it helps create 
> closures, however the reader notation also allows to the same. So when 
> should partial be use dover other forms of creating functions.
>
> Thanks,
> Murtaza
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en