[Webkit-unassigned] [Bug 72483] Add .dir-locals.el file for Emacs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 24 04:59:49 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=72483





--- Comment #16 from Andy Wingo <wingo at igalia.com>  2011-11-24 04:59:49 PST ---
(In reply to comment #15)
> http://code.google.com/p/chromium/wiki/Emacs 
> 
> ... recommends having .dir-locals.el specify (c-file-style . "WebKit")

That's an interesting page, thanks for the link.

There are definitely things you can do to improve webkit editing if you are willing to edit your .emacs, but my goal with this was to make things better for people that don't have .emacs customizations.

If you are editing your .emacs, something like:

(defun webkit-c++-mode ()
  "C++ mode with adjusted defaults for use with WebKit."
  (interactive)
  (c++-mode)
  (c-set-style "WebKit")
  (setq indent-tabs-mode t)
  (setq c-basic-offset 4))

(setq auto-mode-alist (cons '("/WebKit/.*\\.[ch]*$" . webkit-c++-mode)
      auto-mode-alist))

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list