unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Project initialization files?
@ 2012-07-17 17:25 Bruce Korb
  2012-07-17 17:45 ` Eli Zaretskii
  2012-07-17 18:17 ` Jambunathan K
  0 siblings, 2 replies; 6+ messages in thread
From: Bruce Korb @ 2012-07-17 17:25 UTC (permalink / raw)
  To: emacs-devel

Hi,

I am probably not guessing the correct search term to find  prior discussions
of what I'm interested in, sorry.  Anyway, I work on a number of different
projects and each of them have their own favored way of indenting the code.
To cope with this, emacs and Vim have mechanisms for automatically
formatting the code to the preferred formatting style.  All you need is a little
comment like "c-file-style: gnu", for example.  Well, the Linux kernel has
decided to remove these warts, they've never been acceptable at my various
employers and often they are not incorporated into projects I play around with.

What to do?  It seems to me there ought to be some way of saying, "C files
in this tree are gnu-style, that tree is Stroustrup and over there use
the linux-kernel's favored style.  I think it boils down to this question:

How hard would it be to set up a personal registry of projects
(~/emacs.d/projects)
that specified the c-file-style for all .c/.h files in a tree?  So if
I edit files in
~/my-day-job, I use the "work" style, etc.

Does such a thing already exist?  EDE isn't quite it and it requires a special
file added to the source code to boot.  But what I'd like to find ought to be
able to pilfer some of that code...

Suggestions?  Thanks!  - Bruce



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-21 22:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-17 17:25 Project initialization files? Bruce Korb
2012-07-17 17:45 ` Eli Zaretskii
2012-07-17 20:25   ` Bruce Korb
2012-07-21 22:06     ` Nix
2012-07-17 21:12   ` Dan Nicolaescu
2012-07-17 18:17 ` Jambunathan K

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).