| 1 |
;; |
| 2 |
;; The following commands should be added to your .emacs file to support |
| 3 |
;; Audacity's recommended indentation style. |
| 4 |
;; |
| 5 |
|
| 6 |
(defun audacity-c++-indent-setup () |
| 7 |
; Set basic offset to 3 spaces |
| 8 |
(setq c-basic-offset 3) |
| 9 |
; Don't ever insert tabs when auto-formatting files. Use only spaces. |
| 10 |
(setq indent-tabs-mode nil)) |
| 11 |
|
| 12 |
(add-hook 'c++-mode-hook 'audacity-c++-indent-setup) |
| 13 |
(add-hook 'c-mode-hook 'audacity-c++-indent-setup) |
| 14 |
|
| 15 |
;; |
| 16 |
;; Other items you may wish to add to your .emacs file |
| 17 |
;; |
| 18 |
|
| 19 |
(setq line-number-mode 1) |
| 20 |
(setq tab-width 3) |
| 21 |
(setq default-tab-width 3) |