Re: Checksum (noob)



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?
.



Relevant Pages

  • Re: Python syntax in Lisp and Scheme
    ... Doug Tolton writes: ... >>easily discovered and repaired with Emacs. ... > command. ... If the resulting indentation is bogus, ...
    (comp.lang.lisp)
  • Re: Setting up development environment
    ... I have a question about indentation. ... .emacs hook, tabs are represented by 8 spaces. ... I want to contribute with FreeBSD development. ...
    (freebsd-hackers)
  • Re: Which style do you prefer?
    ... That kind of indentation makes me batty. ... (with the exception of key-value pairs) ... you indentantion with Emacs and auto-fill-mode on. ... > The big block of empty space on the left bugs me. ...
    (comp.lang.lisp)
  • Re: Best IDE?
    ... indentation, whatever I want basically ... Resource-light, contrary to the preconceived opinions some have of Emacs ...
    (comp.lang.python)
  • Re: Difference between VC++ and UNIX
    ... saying about vim's "fix the indentation" stuff, ... If you are writing lines of code into a C file, Emacs will not indent ... "The sound of peacocks being shredded can't possibly be ...
    (comp.programming)