File tree Expand file tree Collapse file tree 2 files changed +39
-25
lines changed Expand file tree Collapse file tree 2 files changed +39
-25
lines changed Original file line number Diff line number Diff line change 1
1
2
2
Developer's Frequently Asked Questions (FAQ) for PostgreSQL
3
3
4
- Last updated: Tue Feb 18 20:38:29 EST 2003
4
+ Last updated: Mon Jun 2 00:34:39 EDT 2003
5
5
6
6
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
7
7
226
226
less -x4
227
227
emacs:
228
228
M-x set-variable tab-width
229
+
229
230
or
230
- ; Cmd to set tab stops & indenting for working with PostgreSQL code
231
- (c-add-style "pgsql"
232
- '("bsd"
233
- (indent-tabs-mode . t)
234
- (c-basic-offset . 4)
235
- (tab-width . 4)
236
- (c-offsets-alist .
237
- ((case-label . +))))
238
- t) ; t = set this mode on
231
+
232
+ (c-add-style "pgsql"
233
+ '("bsd"
234
+ (indent-tabs-mode . t)
235
+ (c-basic-offset . 4)
236
+ (tab-width . 4)
237
+ (c-offsets-alist .
238
+ ((case-label . +)))
239
+ )
240
+ nil ) ; t = set this style, nil = don't
241
+
242
+ (defun pgsql-c-mode ()
243
+ (c-mode)
244
+ (c-set-style "pgsql")
245
+ )
239
246
240
247
and add this to your autoload list (modify file path in macro):
241
248
242
249
(setq auto-mode-alist
243
- (cons '("\\`/usr/local/src /pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
244
- auto-mode-alist))
250
+ (cons '("\\`/home/andrew /pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
251
+ auto-mode-alist))
245
252
or
246
253
/*
247
254
* Local variables:
Original file line number Diff line number Diff line change 12
12
< H1 > Developer's Frequently Asked Questions (FAQ) for
13
13
PostgreSQL</ H1 >
14
14
15
- < P > Last updated: Tue Feb 18 20:38:29 EST 2003</ P >
15
+ < P > Last updated: Mon Jun 2 00:34:39 EDT 2003</ P >
16
16
17
17
< P > Current maintainer: Bruce Momjian (< A href =
18
18
"mailto:pgman@candle.pha.pa.us "> pgman@candle.pha.pa.us</ A > )< BR >
@@ -281,22 +281,29 @@ <H3><A name="1.5">1.5</A>) What tools are available for
281
281
less -x4
282
282
emacs:
283
283
M-x set-variable tab-width
284
+
284
285
or
285
- ; Cmd to set tab stops & indenting for working with PostgreSQL code
286
- (c-add-style "pgsql"
287
- '("bsd"
288
- (indent-tabs-mode . t)
289
- (c-basic-offset . 4)
290
- (tab-width . 4)
291
- (c-offsets-alist .
292
- ((case-label . +))))
293
- t) ; t = set this mode on
286
+
287
+ (c-add-style "pgsql"
288
+ '("bsd"
289
+ (indent-tabs-mode . t)
290
+ (c-basic-offset . 4)
291
+ (tab-width . 4)
292
+ (c-offsets-alist .
293
+ ((case-label . +)))
294
+ )
295
+ nil ) ; t = set this style, nil = don't
296
+
297
+ (defun pgsql-c-mode ()
298
+ (c-mode)
299
+ (c-set-style "pgsql")
300
+ )
294
301
295
302
and add this to your autoload list (modify file path in macro):
296
303
297
- (setq auto-mode-alist
298
- (cons '("\\`/usr/local/src /pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
299
- auto-mode-alist))
304
+ (setq auto-mode-alist
305
+ (cons '("\\`/home/andrew /pgsql/.*\\.[chyl]\\'" . pgsql-c-mode)
306
+ auto-mode-alist))
300
307
or
301
308
/*
302
309
* Local variables:
You can’t perform that action at this time.
0 commit comments