Dev FAQ emacs settings
От | Andrew Dunstan |
---|---|
Тема | Dev FAQ emacs settings |
Дата | |
Msg-id | 017301c31673$c9a17e40$6401a8c0@DUNSLANE обсуждение исходный текст |
Ответы |
Re: Dev FAQ emacs settings
|
Список | pgsql-hackers |
The Developer FAQ is slightly awry for emacs settings, or at least it was for my setup.
Here's what I ended up getting to work
;;-----------------
(c-add-style "pgsql"
'("bsd"
(indent-tabs-mode . t)
(c-basic-offset . 4)
(tab-width . 4)
(c-offsets-alist .
((case-label . +)))
)
nil ) ; t = set this style, nil = don't
'("bsd"
(indent-tabs-mode . t)
(c-basic-offset . 4)
(tab-width . 4)
(c-offsets-alist .
((case-label . +)))
)
nil ) ; t = set this style, nil = don't
(defun pgsql-c-mode ()
(c-mode)
(c-set-style "pgsql")
)
(c-mode)
(c-set-style "pgsql")
)
(setq auto-mode-alist
(cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
auto-mode-alist))
(cons '("\\`/home/andrew/pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
auto-mode-alist))
;;--------------------------
(and if this doesn't show that despite my pushing for a W32 port I'm a Unix guy at heart, nothing will :-)
andrew
В списке pgsql-hackers по дате отправления: