* Creates a directory structure for C/C++
@ 2007-06-24 15:54 Pedro Sa da Costa
2007-07-11 7:29 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Pedro Sa da Costa @ 2007-06-24 15:54 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
Exists any emacs mode that creates automatically a C/C++ directory
structure and the respective makefile?
Thanks,
Pedro Sá da Costa
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Creates a directory structure for C/C++
2007-06-24 15:54 Creates a directory structure for C/C++ Pedro Sa da Costa
@ 2007-07-11 7:29 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2007-07-11 7:29 UTC (permalink / raw)
To: help-gnu-emacs
Pedro Sa da Costa wrote:
> Exists any emacs mode that creates automatically a C/C++ directory
> structure and the respective makefile?
(add-hook 'c-mode-common-hook
(lambda ()
(dolist (subdir '("include" "src" "lib" "bin"))
(unless (file-exists-p subdir)
(make-directory subdir)))
(unless (file-exists-p "Makefile")
(write-region 1 1 "Makefile"))))
:-)
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-11 7:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-24 15:54 Creates a directory structure for C/C++ Pedro Sa da Costa
2007-07-11 7:29 ` Kevin Rodgers
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).