Re: Coding style for emacs

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Coding style for emacs
Дата
Msg-id 87odur2jgm.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Coding style for emacs  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Coding style for emacs
Re: Coding style for emacs
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:

> I use more or less what is in the developers' FAQ (not surprising, since I
> contributed it). It works just fine for me. See
> http://www.postgresql.org/docs/faqs.FAQ_DEV.html#item1.9
> 
> We should probably bring the docs in line with that, unless someone with more
> emacs-fu than me has something to add.

Oh, I've been meaning to email about this. There's a file in the source tree
but it's buggy. The code in your FAQ seems ok, but I prefer the way I've done
it:

(add-hook 'c-mode-hook  (function   (lambda nil      (if (string-match "pgsql" buffer-file-name)     (progn
(c-set-style"bsd")       (setq c-basic-offset 4)        (setq tab-width 4)       (c-set-offset 'case-label '+)
(setqindent-tabs-mode t)       )       ))))
 


   
--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: snapshot replication with pg_dump
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Let psql process files with > 4,294,967,295 lines