Emacs for orocos coding style {Was [Bug 538] Unable specify log level when starting deployer}

On Wed, May 14, 2008 at 2:43 PM, S Roderick <kiwi [dot] net [..] ...> wrote:
[...]
> Sorry in advance for the indenting ... I saw recent traffic re
> orocos-emacs-c-mode. Was a consensus reached about the code?

Well, let's see if Peter still whines about your patches using this
piece of lisp code :-)
&#10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&#10;(defun orocos-mode()&#10;  &quot;C++ mode with adjusted defaults for use with orocos.&quot;&#10;  (interactive)&#10;  (c++-mode)&#10;  (setq tab-width 4)&#10;  (setq c-basic-offset 4)&#10;  (setq indent-tabs-mode nil))&#10;(add-hook &#039;orocos-mode-common-hook&#10;          &#039;(lambda ()&#10;             (abbrev-mode 1)&#10;             (auto-fill-mode 1)&#10;             (hide-ifdef-mode 1))&#10;)&#10;(add-to-list &#039;auto-mode-alist&#10;&#039;(&quot;/\\(rtt\\|ocl\\).*\\.\\(cpp\\|cxx\\|hpp\\|hxx\\)$&quot; . orocos-mode))&#10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&#10;
Note that
* the above "automagic orocos-mode selection" will only work if your
local (SVN-)copies are in directories whose names start with rtt or
ocl , e.g. in my case
[kgad@ampere ~]$
ls SVN/orocos/
bfl-trunk ocl-1.4 orocos-apps-examples-trunk rtt-1.4 rtt-trunk
* (setq tab-width 4) is probably not necessary (but doesn't harm)
* You might remove/alter the hooks if you don't like them (apart from
the auto-fill-mode perhaps, but I can't find anything about that in
doc/CODING_STYLE.txt)...

@Ruben (No discrimination: I was just too lazy to check whether KDL
also uses POVIS [*])

[*] Peter's Own Version of Indentation Style

If it works properly, it might be worth putting this on the developer pages.

HTH

Klaas