[Pidgin] EditorConfigs modified

Pidgin trac at pidgin.im
Wed Jun 12 19:41:45 EDT 2013

Page "EditorConfigs" was changed by immerrr
Diff URL: <https://developer.pidgin.im/wiki/EditorConfigs?action=diff&version=4>
Revision 4
Comment: extend emacs section: add "tab-width 8" style variable and describe ".dir-locals.el"
Index: EditorConfigs
--- EditorConfigs (version: 3)
+++ EditorConfigs (version: 4)
@@ -5,7 +5,8 @@
 Suppose your personal preferred indentation style is dissimilar from the Pidgin indentation style, but you're a team player and you want to use Pidgin indentation when working on Pidgin/libpurple/whatever.  These snippets can help you with that.
-(c-add-style "pidgin" '((c-tab-always-indent . t)
+(c-add-style "pidgin" '((tab-width . 8)
+                        (c-tab-always-indent . t)
                         (c-basic-offset . 8)
                         (indent-tabs-mode . t)))
@@ -18,6 +19,15 @@
 Make sure this hook runs after your normal setup hook, if your normal hook sets a style.  The or is included just to show how to match multiple paths.  You may perform the selection however you like, path snippets just happen to be useful given my filesystem organization.  -- [wiki:elb]
+>If you're using Emacs23+, there's an arguably cleaner way to set up project-specific configuration  via [http://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html directory variables]. All you need to do is to add the customization to `.dir-locals.el` file to the root dir of your pidgin clone and it will be applied to all files below that dir. For example, given the `pidgin` style definition above, my setup is as follows (additional `c++-mode` config is necessary if you associate `*.h` files with it, like I do):
+>((c-mode . ((c-file-style . "pidgin")))
+> (c++-mode . ((c-file-style . "pidgin")
+>              (mode . c))))
+>-- immerrr
 == VIM ==

Page URL: <https://developer.pidgin.im/wiki/EditorConfigs>
Pidgin <http://pidgin.im>

This is an automated message. Someone added your email address to be
notified of changes on 'EditorConfigs' page.
If it was not you, please report to datallah at pidgin.im.

More information about the Wikiedit mailing list