Live data from Hacker News

Learn Emacs Lisp in 15 minutes

bzg.fr

11–20 of 71 posts

Re: Learn Emacs Lisp in 15 minutes

#13
post #8
post #5

Basic Emacs lisp is well worth learning. It takes Emacs from being an editor to being your editor. With something like Eclipse, even adding a little bit of functionality is an undertaking. You have to create a project, write a bunch of boilerplate, load it and so on. With Emacs, it's basically effortless: a line or two of elisp can do wonders. Sometimes I add functionality by just executing elisp directly (with M-:),…

An excuse to dive into lisp like that just might pull me away from Vim (Vimscript is terrible, sigh).

[deleted]

Re: Learn Emacs Lisp in 15 minutes

#14
post #5

Basic Emacs lisp is well worth learning. It takes Emacs from being an editor to being your editor. With something like Eclipse, even adding a little bit of functionality is an undertaking. You have to create a project, write a bunch of boilerplate, load it and so on. With Emacs, it's basically effortless: a line or two of elisp can do wonders. Sometimes I add functionality by just executing elisp directly (with M-:),…

On top of paredit, try redshank http://www.foldr.org/~michaelw/emacs/redshank/ (process s-exp to refactor etc)

This is taken from John Wiegley's talk at emacs conf, here's a little summary of his emacs environment btw : https://gist.github.com/jwiegley/5277578

Re: Learn Emacs Lisp in 15 minutes

#15
post #8

Earlier quoted context omitted.

An excuse to dive into lisp like that just might pull me away from Vim (Vimscript is terrible, sigh).

Have a Look at Evil, really good vim bindings for emacs

+1. Evil is great. I think it's made Emacs my favourite implementation of Vi yet.

Re: Learn Emacs Lisp in 15 minutes

#16

Earlier quoted context omitted.

Have a Look at Evil, really good vim bindings for emacs

+1. Evil is great. I think it's made Emacs my favourite implementation of Vi yet.

Well, the problem is that these bindings don't usually implement the corner case Vim functionality I've come to rely on over the years. Can it record macros perfectly? Does :%s/foo/bar/ work? How about selecting, then :s/foo/bar/gi? Does the period key reproduce all actions properly? How about :%s/foo\([0-9]+\)/bar\1/ ? Do all of the basic actions do exactly the same thing as they do in a vim editor? Does % take you to the nearest parens or brackets, then cycle between the opening and closing one? If so, I'm sold. These aren't just random desires -- all of these are necessary for anyone who thinks in Vim.

A few years ago I tried some emacs vim simulator and it had glaring flaws in multiple categories. Vimpulse or Viper or something, I think.

It seems like it's a catch 22 because anyone sufficiently skilled with emacs to design a perfect vim simulator also has no reason to do so, since they're emacs masters.

(I'm on a phone else I'd check out evil now.)

Re: Learn Emacs Lisp in 15 minutes

#17

Ha, this is perfectly timed. After years of being a vi/vim user (not for any particular reason, it's just what I learned a few years back and just stuck with), I decided to start running through the Emacs tutorial for the hell of it yesterday. I really miss Lisp from my college days, and being able to work it back into my regular workflow just sounded like a fun idea. I read through this tutorial and its really a gre…

vi is the god of editors. emacs is the editor of gods.

emacs is the editor of sore wrists.

Re: Learn Emacs Lisp in 15 minutes

#18
post #5

Basic Emacs lisp is well worth learning. It takes Emacs from being an editor to being your editor. With something like Eclipse, even adding a little bit of functionality is an undertaking. You have to create a project, write a bunch of boilerplate, load it and so on. With Emacs, it's basically effortless: a line or two of elisp can do wonders. Sometimes I add functionality by just executing elisp directly (with M-:),…

This is why I'm eagerly watching Light Table releases waiting for the "good enough" moment. It's going to have the advantages you mentioned, except in Clojure(script), which is, er, more broadly applicable. The GUI being bog-standard Webkit is another major plus.

Emacs has had an astonishing run but is just slightly too opinionated for me to have taken the plunge. The promise of light table has kept me working in sublime for now (with a bit of Catnip IDE on the side).

Re: Learn Emacs Lisp in 15 minutes

#19

Earlier quoted context omitted.

+1. Evil is great. I think it's made Emacs my favourite implementation of Vi yet.

Well, the problem is that these bindings don't usually implement the corner case Vim functionality I've come to rely on over the years. Can it record macros perfectly? Does :%s/foo/bar/ work? How about selecting, then :s/foo/bar/gi? Does the period key reproduce all actions properly? How about :%s/foo\([0-9]+\)/bar\1/ ? Do all of the basic actions do exactly the same thing as they do in a vim editor? Does % take you…

It actually works similar enough that I switch between Vim and Evil daily without getting annoyed. I usually use Vim from the terminal. The follow things you asked about are all working:

  Macros
  Repeat
  :'s/foo/bar/gi
  :%s/foo\(bar\)/bar\1/
It is very actively developed and quite stable. There are of cause Vim features that are not implemented yet, but the core seams to be very well covered.

Re: Learn Emacs Lisp in 15 minutes

#20
post #17

Earlier quoted context omitted.

vi is the god of editors. emacs is the editor of gods.

emacs is the editor of sore wrists.

Q: How do you recognize experienced Emacs user?

A: Foot pedals.

http://bc.tech.coop/blog/041024.html

http://www.cb1.com/~john/computing/emacs/handsfree/pedals.ht...

Post reply on HN