2002-04-11 14:32:29 +00:00
|
|
|
|
;;;; Emacs Lisp help for writing rockbox code. ;;;;
|
|
|
|
|
;;;; $Id$
|
|
|
|
|
|
|
|
|
|
;;; In C files, put something like this to load this file automatically:
|
|
|
|
|
;;
|
|
|
|
|
;; /* -----------------------------------------------------------------
|
|
|
|
|
;; * local variables:
|
2002-04-12 13:58:55 +00:00
|
|
|
|
;; * eval: (load-file "rockbox-mode.el")
|
2002-04-11 14:32:29 +00:00
|
|
|
|
;; * end:
|
|
|
|
|
;; */
|
|
|
|
|
;;
|
|
|
|
|
;; (note: make sure to get the path right in the argument to load-file).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; The rockbox hacker's C conventions
|
|
|
|
|
|
2002-04-12 13:58:55 +00:00
|
|
|
|
;;; we use intent-level 4
|
2002-04-11 14:32:29 +00:00
|
|
|
|
(setq c-basic-offset 4)
|
|
|
|
|
;;; never ever use tabs to indent!
|
|
|
|
|
(setq indent-tabs-mode nil)
|
2002-05-13 13:15:38 +00:00
|
|
|
|
;;; enable font coloring of type 'bool'
|
|
|
|
|
(setq c-font-lock-extra-types (append '("bool") ))
|
2002-04-11 14:32:29 +00:00
|
|
|
|
;;; I like this, stolen from Subversion! ;-)
|
|
|
|
|
(setq angry-mob-with-torches-and-pitchforks t)
|