Re: Checksum (noob)
- From: Damien Kick <dkixk@xxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 01:28:11 GMT
Zach Beane wrote:
"atgraham@xxxxxxxxx" <atgraham@xxxxxxxxx> writes:I've been looking over Graham's book, and he stresses the importance of
indentation. Traditionally, I've shunned emacs, since it seems to get
*all* default behavior wrong, in every situation, ...
Not true.
Maybe it's just because I already drank the Koolaid, having been an Emacs user for a few years now, but I don't quite understand this attitude towards Emacs from beginners. I started using vi in college and I absolutely fail to see how any of that program could be considered to be intuitive. Seriously, take any random person off the street and sit them down in front of a window with vi having been started. Who in their right mind is going to think, "obviously, I must hit 'i' before I begin typing." Emacs at least gets this part right. Emacs haters also seem to not be able to stand all of the key chords but must of the common functions have menu driven controls, too. I don't see how Emacs is any worse off than many of the other modern menu driven text editors in this respect. However, I do think that the customization menus are confusing. I always have a hard time finding which submenu has the option in which I'm interested. I personally never use the mouse when using Emacs. I just have never seen why using modifiers keys is seen as such a problem for some people.
Alas, it gets the indentation wrong, or at least it's different
than what Graham suggests (for example, in "if" expressions, it indents
the "then" differently than the "else"). Is there a configuration
parameter that I can use to fix it?
(setq lisp-indent-function 'common-lisp-indent-function) is a quick
way. You can make it more specific to CL buffers, but if you don't
edit a lot of elisp, you don't have to worry much about it. Google
should give you some examples with which to work.
Doesn't slime-setup Do the Right Thing in this regard, i.e. setting up common-lisp buffers to use common-lisp-indent-function while leaving elisp buffers with elisp-style indentation?
.
- References:
- Checksum (noob)
- From: atgraham@xxxxxxxxx
- Re: Checksum (noob)
- From: Zach Beane
- Checksum (noob)
- Prev by Date: Re: Checksum (noob)
- Next by Date: Re: (* 2.4 3) => 7.2000003 WTF?! Let's Fix Lisp! Noob Programming Challenge
- Previous by thread: Re: Checksum (noob)
- Next by thread: Re: Checksum (noob)
- Index(es):
Relevant Pages
|