dale@odetics.com (Dale Pischke) (11/09/90)
Over a month ago, I asked for help in inhibiting c-mode indentation when editing .c and .h files. The following is a summary of the responses I received
(THANK YOU to all that helped), sorry to have taken so long to summarize:
1. Edit the .c and .h files in fundamental mode using the following:
(setq auto-mode-alist (cons '("\\.c$" . fundamental-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.h$" . fundamental-mode) auto-mode-alist))
2. Force fundamental mode for all file types as follows:
(setq initial-major-mode 'fundamental-mode)
(setq default-major-mode 'fundamental-mode)
(setq auto-mode-alist)
3. Control tabbing as follows:
(define-key c-mode-map "\t" 'self-insert-command)
or
(define-key c-mode-map "\C-i" 'tab-to-tab-stop)
4. Put emacs in text mode using: M-x text-mode or ("\\.c$" . text-mode) on
the front of auto-mode-alist.
5. C-h m to get list of local key bindings, add C-mode-hook to rebind them
back to plain characters.
--
Dale R. Pischke uunet!odetics!dale
Senior Software Engineer dale@odetics.com
Odetics Broadcast Anaheim, California