[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] Cleanup whitespace warnings in Lib.pm



On Mon, Aug 03, 2009 at 03:18:54PM +0200, Jim Meyering wrote:
> Will do.

This is the snippet I've just tested:

----------------------------------------------------------------------
(defun libguestfs-c-mode ()
  "C mode with adjusted defaults for use with libguestfs."
  (interactive)
  (setq indent-tabs-mode nil) ; indent using spaces, not TABs
  )
(add-hook 'c-mode-hook
          '(lambda () (if (string-match "/libguestfs" (buffer-file-name))
                          (libguestfs-c-mode))))
----------------------------------------------------------------------

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]