Joao Luis Meloni Assirati wrote: > Is there some emacs mode that indents code only with tabs, as required by > lyx code rules? Do you recommend another editor?
Those brainwashed by vi propoganda will make some ridiculous suggestions to this question. Ignore them. Lars suggested I add this to my .emacs file and i find it works fine. The bit you're looking for is the '(setq c-basic-offset 8)' line. ;;; Common hook (defun my-c-mode-common-hook () ;; Set return Style (local-set-key [return] 'newline-and-indent) (local-set-key [S-return] 'newline) (c-set-style "CC-MODE") ) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) ;; C++ mode hook (defun my-c++-mode-hook () ;; Style parameters (setq c-basic-offset 8) (c-set-offset 'innamespace 0) (c-set-offset 'inextern-lang 0) (imenu-add-to-menubar "Index") (c-toggle-auto-state 0) ) (add-hook 'c++-mode-hook 'my-c++-mode-hook) -- Angus
