Re: emacs question - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: emacs question
Date
Msg-id 384824CE.BDF931F2@alumni.caltech.edu
Whole thread Raw
In response to Re: emacs question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
<snip helpful intro which I'd like to think I already knew, at least
mostly ;) >

> >     (setq indent-tab-mode nil))
> ... Finally, as far as
> suppressing use of tabs to do logical indentation, you've almost got 
> it right, but the variable is named "indent-tabs-mode".

sheesh, that's it! I was going around in lots of tiny little
circles... :(

> Also, if you want to have different conventions for different 
> projects, setting a c++-mode-hook is probably not the way to go; that 
> will get run *any* time you visit a c++ file.  I'd suggest a trick 
> that someone (Peter E. I think) recently pointed out to me: you can 
> pattern-match on the location of a source file in an auto-mode-alist 
> pattern.  So I've now got this in my .emacs:

Great. I had just been thinking about this, and now I don't have to
figure it out :))

Thanks.
                     - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


pgsql-hackers by date:

Previous
From: Andy Lewis
Date:
Subject: Re: Datetime operators (was: Re: [SQL] Another Date question)
Next
From: Thomas Lockhart
Date:
Subject: Re: Datetime operators (was: Re: [SQL] Another Date question)