Re: emacs - how to wean me off the family of Java IDEs

2013-05-10 Thread Eric S Fraga
Kendall Shaw ks...@kendallshaw.com writes: [...] I spent years with the beginnings of carpal tunnel syndrome and tried all sorts of changes, including using both hands. But, finally, I started using viper mode (vi key bindings) and I have had no carpal tunnel symptoms for 10 years. +1. I

Re: emacs - how to wean me off the family of Java IDEs

2013-05-02 Thread Kendall Shaw
On 5/1/2013 5:46 PM, James Thornton wrote: ... Before I realized my bad habit, I would contort my left hand to hit Ctrl Alt x -- this feels awkward and if you do it enough times over the years the repetitive stress builds up. A better way is to use both hands. This may seem obvious to those

Re: emacs - how to wean me off the family of Java IDEs

2013-05-02 Thread Phil Hagelberg
Devin Walters writes: Voicing strong disagreement with using emacs-live as a starting point. One reason: They rebind a bunch of default emacs bindings, which is just fine by me, but C-h to a newcomer is important, and IIRC they rebound it. I think Phil's emacs-starter-kit modules/packages

Re: emacs - how to wean me off the family of Java IDEs

2013-05-02 Thread Devin Walters
I agree with you, but personally found that the starter-kit wasn't as divergent from the norm as emacs-live and didn't have as many strong opinions. My big complaint is really just the rebinding of C-h. It's important for newcomers to be able to use that to learn about bindings and so on that

Re: emacs - how to wean me off the family of Java IDEs

2013-05-02 Thread Gary Trakhman
After a year and a half of use, I still don't know anything about C-h, I've gotten by for a year or so on 'M-x describe-bindings' and more ad-hoc methods of finding stuff out. On Thu, May 2, 2013 at 1:29 PM, Devin Walters dev...@gmail.com wrote: I agree with you, but personally found that the

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Colin Yates
So a few months after using emacs, I gotta say I love it. First I absolutely hated it with a passion, and it really highlights my (fast but) poor typing skills :). Like Clojure I guess it requires a very different mindset. My constant frustration now is deciding whether to spend the time

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Víctor M . Valenzuela
My constant frustration now is deciding whether to spend the time improving my emacs skills (at the level of mainly implementing keybindings) or improving my lein and Clojure skills. One skill can help bootstrapping the other :) clojure.core/trampoline style. Thanks for sharing your

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Ulises
The biggest 'ah - got it' for me was when I realised IDEs are great for navigating huge object models which are relatively narrow but deep (i.e. lots of nested relationships). This requires a special set of navigation skills (cntrl-click to go to declaration, autocompletion etc). Clojure

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Colin Yates
Without static typing, I guess grep is the best? On 1 May 2013 12:13, Ulises ulises.cerv...@gmail.com wrote: The biggest 'ah - got it' for me was when I realised IDEs are great for navigating huge object models which are relatively narrow but deep (i.e. lots of nested relationships). This

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Víctor M . Valenzuela
I think such a feature is available in common lisp's slime. It shouldn't be hard to implement in clojure, particularly considering how helpful namespaces are. one would miss calls through eval etc, but that happens in statically-typed langs too (think reflection). On Wed, May 1, 2013 at 1:36 PM,

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Ulises
Because it's part of slime is why I was wondering whether it was already there and I had just missed it. grep will do for now I suppose. On 1 May 2013 12:44, Víctor M. Valenzuela v...@vemv.net wrote: I think such a feature is available in common lisp's slime. It shouldn't be hard to implement

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Phil Hagelberg
Ulises writes: Because it's part of slime is why I was wondering whether it was already there and I had just missed it. IIRC the implementation in swank-clojure is basically just grep that works inside jar files; it gives you lots of false positives when functions have the same name. It

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread James Thornton
Here's a key Emacs tip that will reduce your stress and make the key combinations easier, but it may not be obvious when you're first starting out... When you're learning something new, it's easy for bad form to go unnoticed unless someone points it out -- this is true in golf, tennis, Emacs,

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Softaddicts
Being left handed, I slightly disagree about your left hand (I'm left handed most of the time :) however the stress of repetive movements is often overlooked. 15 years ago, I started to use my left hand to control the mouse. My trunk had started leaning toward the right after a few years of

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread John Gabriele
On Wednesday, May 1, 2013 9:44:11 PM UTC-4, Luc wrote: I will eventually get back to it but reading your comment made me realize that I should wait when I can find emacs support for pedals much like an organ or a piano :) They've got pedals at https://www.kinesis-ergo.com/ which I

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Softaddicts
I may try their Savant Elite product :))) Three pedals ! On Wednesday, May 1, 2013 9:44:11 PM UTC-4, Luc wrote: I will eventually get back to it but reading your comment made me realize that I should wait when I can find emacs support for pedals much like an organ or a piano :)

Re: emacs - how to wean me off the family of Java IDEs

2013-05-01 Thread Devin Walters
Voicing strong disagreement with using emacs-live as a starting point. One reason: They rebind a bunch of default emacs bindings, which is just fine by me, but C-h to a newcomer is important, and IIRC they rebound it. I think Phil's emacs-starter-kit modules/packages are a better place to

Re: emacs - how to wean me off the family of Java IDEs

2013-02-01 Thread Korny Sietsma
Phillip - thanks, that works nicely. (I had gotten it working by downloading sr-speedbar.el manually and editing it, but I prefer to stick with the packaged version if possible, less for me to remember) - Korny On 25 January 2013 00:38, Phillip Lord phillip.l...@newcastle.ac.uk wrote:

Re: emacs - how to wean me off the family of Java IDEs

2013-02-01 Thread Korny Sietsma
Actually, that still didn't seem to work. After a bit of fiddling, I found that if I install sr-speedbar from melpa, it spits out a couple of warnings, thinks it is installed, but I don't get any sr-speedbar commands. Strange. I'll stick to just downloading the package from

Re: emacs - how to wean me off the family of Java IDEs

2013-02-01 Thread John Chijioke
+1 for ECB. Especially alexott's work. I have been using ecb for over a year now and I can assure you it's totally awesome. Nothing beats it in emacs when it comes to exploring source code directory structure. you need it. With eshell integrated to switch automatically to your working

Re: emacs - how to wean me off the family of Java IDEs

2013-01-24 Thread Phillip Lord
make-local-hook has been deprecated for a while now and has now been removed. In general, you can just ignore it and everything will work correctly. So: (defalias 'make-local-hook 'ignore) before you load anything should solve this problem. Whether any other problems remain, I don't know.

Re: emacs - how to wean me off the family of Java IDEs

2013-01-23 Thread Korny Sietsma
On 17 January 2013 17:26, Sean Corfield seancorfi...@gmail.com wrote: Error: Symbol's function definition is void: make-local-hook bump - anyone know a workaround for this - I was interested in sr-speedbar, especially for editing over an ssh session, but it doesn't seem to work with emacs 24?

Re: emacs - how to wean me off the family of Java IDEs

2013-01-17 Thread Korny Sietsma
I've been using projectile for project-level commands, and found it quite good - it autodetects project root from things like .git directories, and then gives you commands like open file in project, search in project etc. - Korny -- Sent from my geek device... Spelling mistakes can be blamed on

emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Colin Yates
Hi all, After 15 off years of using IDEs I am making the jump into Emacs. I have read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs and https://github.com/technomancy/emacs-starter-kit and I am just at the point where I have stopped yelling at paredit and starting to

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
you can install autocomplete package (available via package.el on MELPA) - it will provide dictionary based name completion for JS On Wed, Jan 16, 2013 at 3:29 PM, Colin Yates colin.ya...@gmail.com wrote: Hi all, After 15 off years of using IDEs I am making the jump into Emacs. I have read

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Charlie Griefer
On Jan 16, 2013, at 7:29 AM, Colin Yates colin.ya...@gmail.com wrote: Hi all, After 15 off years of using IDEs I am making the jump into Emacs. I have read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs and https://github.com/technomancy/emacs-starter-kit and I am just at

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Colin Yates
Thanks Alex. Charlie - I hear you. You are right to (very gently) point out that I should embrace new idioms. Boy it is hard though :). I have to say that I too found it much less of a shock then I thought. I am very familiar with Linux and shell scripts so I had that skillset already which I

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Jay Fields
emacs-live is a pretty great starting point. It's the 'whole-kitchen-sink', but it's great for finding out what you don't know. emacs-rocks videos are good (and short) I also put off learning it until late last year, and I'm not completely converted. I *love* it and would be very unhappy if I

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Marko Topolnik
I missed the project explorer at first, until I figured out that I can C-x C-f and just start typing, and emacs will fuzzy match what I might be looking for, including files in directories other than current. This function is contributed by some package and is not the default, at least

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Charlie Griefer
On Jan 16, 2013, at 8:29 AM, Marko Topolnik marko.topol...@gmail.com wrote: I missed the project explorer at first, until I figured out that I can C-x C-f and just start typing, and emacs will fuzzy match what I might be looking for, including files in directories other than current.

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Feng Shen
Hi: I use Everything http://www.emacswiki.org/emacs/Everything to find files in project. Just type a part of the name, all files filter by your typing listed for you to choose from. Something like Eclipse's Ctrl +Shift + R (or Command + Shift + R on mac) . But you need some time to

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread larry google groups
Regarding the explorer, I keep several frames open (a frame is the word that Emacs uses for window -- I keep several windows open) and in one of those windows I'll keep my bookmarks (a bookmark is an alias you can use in Emacs to jump to any location in any file). But I also feel that Emacs is

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Stefan Kamphausen
Just a few things, you might find interesting * anything/helm: http://www.emacswiki.org/Anything * speedbar (used that in my early years; got rid of it eventually) * mtorus: http://www.emacswiki.org/emacs/MTorus (shameless self-plug) * M-. on functions * M-x ffap * iswitchb-buffer (just keep the

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Marko Topolnik
I'm starting off with 24, so not sure what was default in 23… but C-x C-f in 24 lets you fuzzy match to a particular directory, then type a file name. The minibuffer alerts you to the fact that there's no match, but you simply hit return, then return again to confirm, and the new file is

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Colin Yates
Thanks all. LightTable does look awesome and I haven't invested enough time to fully get to grips with it yet, but I am not sure it would be an upgrade for me (wow - I am really going with the flame bait today!). Coming from IntelliJ, which is a pretty fantastic general (i.e. Java, scala,

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Amirouche Boubekki
Great! emacs is my favorite editor, I used it for many years now except for Java dev because I'm too lazy to configure intelli-sens... In the following there is all I *use* in emacs and which make you ready to use emacs - as I am - daily. I use emacs 24 and the following only needs a vanilla

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Colin Yates
Thanks a bunch. On 16 Jan 2013 16:34, Amirouche Boubekki amirouche.boube...@gmail.com wrote: Great! emacs is my favorite editor, I used it for many years now except for Java dev because I'm too lazy to configure intelli-sens... In the following there is all I *use* in emacs and which make you

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Sean Corfield
On Wed, Jan 16, 2013 at 7:38 AM, Charlie Griefer charlie.grie...@gmail.com wrote: I'm starting off with 24, so not sure what was default in 23… but C-x C-f in 24 lets you fuzzy match to a particular directory, then type a file name. And if you've typed a new filename and it still tries to match

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Phil Hagelberg
Colin Yates writes: So my questions: - is there a decent project explorer. I really miss the tree on the left, editor on the right layout Personally I believe this is an antipattern; IMO you should only see the file structure it is relevant rather than the speedbar style of having it

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Warren Lynn
- is there a decent project explorer. I really miss the tree on the left, editor on the right layout Emacs is my favorite editor. But it is not perfect. My thoughts from my 8 years of using it are: 1. It is very customizable, as it builds on Elisp. After you learned some Elisp programming

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Sean Corfield
On Wed, Jan 16, 2013 at 8:33 AM, Amirouche Boubekki amirouche.boube...@gmail.com wrote: - is there a decent project explorer. I really miss the tree on the left, editor on the right layout speedbar: «C-X speedbar» M-x speedbar - but that looks very interesting, thank you! It's kinda funky in

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Sean Corfield
On Wed, Jan 16, 2013 at 10:38 AM, Phil Hagelberg p...@hagelb.org wrote: Of course the best solution is simply not to work on large projects and break your codebase up into manageable units where you can keep the project structure in your head, but I understand this isn't always within your

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread localredhead
ECB is another option. It shows the directory tree, methods/functions, altered files (waiting to be saved) etc. I get the sense that people avoid ECB but I've always used because it had IDE-like functionality that I missed. Configuring it can be a bit difficult but IMO worth it. I preferred

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
just want to say, that ECB that works with fresh Emacs/CEDET is available from my repo: https://github.com/alexott/ecb On Wed, Jan 16, 2013 at 7:32 PM, localredhead levi.str...@gmail.com wrote: ECB is another option. It shows the directory tree, methods/functions, altered files (waiting to be

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Gary Johnson
There's a MELPA package (use `M-x package-list-packages') called sr-speedbar that displays the speedbar in the same frame you are already working in. I just stick sr-speedbar-toggle on F11 and call it a day. YMMV. On Wednesday, January 16, 2013 1:45:35 PM UTC-5, Sean Corfield wrote: On Wed,

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread localredhead
Alex - I recognized your name in this thread but couldn't pinpoint how/where. You just reminded me that I'm using your ECB fork. Thanks for pulling that together :) On Wednesday, January 16, 2013 11:14:11 AM UTC-8, Alex Ott wrote: just want to say, that ECB that works with fresh Emacs/CEDET

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread localredhead
+1 sr-speedbar for NERDTree like functionality. Normal speedbar being a different window always bothered me. sr-speedbar + find-files-in-project is a pretty powerful combo. On Wednesday, January 16, 2013 12:50:59 PM UTC-8, Gary Johnson wrote: There's a MELPA package (use `M-x

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Sean Corfield
sr-speedbar seems to depend on the CL package being present? Not sure I want to have that installed... I seem to recall cautions from several folks about that...? Sean On Wed, Jan 16, 2013 at 2:51 PM, localredhead levi.str...@gmail.com wrote: +1 sr-speedbar for NERDTree like functionality.

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Mark
As a long time Eclipse user who dabbles with Clojure using CCW, I'd love to hear your experience of emacs after you get used to it. Would you consider writing up a blog entry? On Wednesday, January 16, 2013 6:29:36 AM UTC-8, Colin Yates wrote: Hi all, After 15 off years of using IDEs I am

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread vemv
The traditional project explorer / directory tree I use is dirtree: https://github.com/zkim/emacs-dirtree - with a couple of tweaks I found it to be very useful. It is based on tree-mode. There are other available file browser plugins based on it. -- You received this message because you are

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Phil Hagelberg
On Jan 16, 2013 6:50 PM, Sean Corfield seancorfi...@gmail.com wrote: sr-speedbar seems to depend on the CL package being present? Not sure I want to have that installed... I seem to recall cautions from several folks about that...? cl.el ships with emacs and is widely used. Writing elisp

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Sean Corfield
On Wed, Jan 16, 2013 at 8:34 PM, Phil Hagelberg p...@hagelb.org wrote: cl.el ships with emacs and is widely used. OK, so I shouldn't worry about this warning when I install a package then? Warning: cl package required at runtime I've seen that a couple of times and assumed it meant cl was not

Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
Another thing, that I want to mention, that some work for support of Clojure in CEDET already started: - there is lein project type for EDE, that automatically recognizes lein projects, and uses lein to fetch classpath information, that can be used for name completion (after parser will be

Re: The 'in' family

2010-12-15 Thread ninjudd
i completely agree about adding update to core. i've added it my utils library and i use it all the time. here's a slightly different implementation of update that takes a variable number of args (like update-in). (defn update Update value in map where f is a function that takes the old

The 'in' family

2010-12-14 Thread ka
The functions get-in, assoc-in, update-in are really useful. Just wanted to share a thoughts. user= (def m {:a {:b {:c 10 :c1 20} :b1 90} :a1 100}) #'user/m 1. Lets see the behavior of these functions in the corner case of empty keyseq: user= (get-in m []) {:a {:b {:c 10, :c1 20}, :b1 90}, :a1

Re: The 'in' family

2010-12-14 Thread Mark Engelberg
One thing I've argued for in the past, but got no traction: We have: get-in, get assoc-in, assoc update-in, ? Let's add update to go with update-in. -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: The 'in' family

2010-12-14 Thread Ken Wesson
On Wed, Dec 15, 2010 at 12:12 AM, Mark Engelberg mark.engelb...@gmail.com wrote: One thing I've argued for in the past, but got no traction: We have: get-in, get assoc-in, assoc update-in, ? Let's add update to go with update-in. Let's give them absolutely no excuse like we don't have time

Re: The 'in' family

2010-12-14 Thread javajosh
On Dec 14, 8:52 pm, ka sancha...@gmail.com wrote: user= (get-in m []) {:a {:b {:c 10, :c1 20}, :b1 90}, :a1 100} This seems strange to me. I would expect Clojure to return nil, as there is no key in there that is nil. Assuming that an empty vector is the same as asking for a nil key, that is.

Re: The 'in' family

2010-12-14 Thread nickik
On Dec 15, 6:12 am, Mark Engelberg mark.engelb...@gmail.com wrote: One thing I've argued for in the past, but got no traction: We have: get-in, get assoc-in, assoc update-in, ? Let's add update to go with update-in. update should really be in there. I always try to write update then i

aset-* family of functions

2009-07-04 Thread Nicolas Oury
of avoiding that? Could the aset-* and aget family was not special forms implemented using their JVM bytecode counterparts. (dastore, in this example) Is it something impossible to do? Or not a good idea? Or to be done later? There have been some long threads about scientific programs in Clojure

Re: aset-* family of functions

2009-07-04 Thread Rich Hickey
realize that it calls the set* method of java.reflect.Array. Is there a way of avoiding that? Could the aset-* and aget family was not special forms implemented using their JVM bytecode counterparts. (dastore, in this example) Is it something  impossible to do? Or not a good idea

Re: aset-* family of functions

2009-07-04 Thread Nicolas Oury
Thanks for the reply. It seems to speed up quite a bit the array of double. I cannot manage to make it work for the array of booleans. Is there someting different? If aset and aget are faster, what is the goal of the aset-xxx? Best, Nicolas.