From: Andreas L. <no...@sb...> - 2001-08-19 12:53:29
|
Hi list, I found a way to customize the emacs-eiffel mode according to the gobo-eiffel guidelines. Actually all the customization does, is that it uses tabs instead of spaces for indenting. Put the following in your .emacs file. You may need to remove your .emacs.elc file in order for these changes to take effect. I have tried this hack with some basic eiffel files and it seems to work, although it could be that I have overseen some complex cases where indenting is still wrong. (Actually I have no idea what the values stand for, all I did was trial&error :) -- (setq indent-tabs-mode t) (custom-set-variables '(eif-rescue-keyword-indent -4) '(eif-feature-level-kw-indent 2) '(eif-extra-then-indent 0) '(eif-feature-level-indent 1) '(eif-continuation-indent 4) '(eif-inherit-level-kw-indent 4) '(eif-feature-level-comment-indent 4) '(eif-indent-increment 4)) (setq-default tab-width 4) -- If you write new code, it will use tabs only, if you want to convert old code, mark all code and execute indent-region and afterwards tabify. hope this helps, Andreas PS: Thanks to Markus Schwenke, the maintainer of the eiffel-mode, for his help. |