From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Ways to use Emacs when programming C++ with Visual Studio?
Date: Sun, 26 Oct 2014 03:47:38 +0100 [thread overview]
Message-ID: <87a94j8s39.fsf@wanadoo.es> (raw)
In-Reply-To: 87tx2tfbo6.fsf@gmail.com
Thorsten Jolitz <tjolitz@gmail.com> writes:
[snip]
> - emacs can be used (after setting quite a lot of environmental
> variables) to interact with the MSVS C++ compiler via the cmd line
VS comes with batch files for setting those environment variables. You
can write a .bat that takes an arbitrary number of arguments, executes
the VS .bat that sets the environment variables and then executes those
arguments as a command. This is mine:
rem vc2013.bat
@call "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
%*
From Emacs you do
M-x compile vc2013.bat <command>
> I'm really new to this C++ thing, so I would appreciate some tips about
> this topic, what can be done, what not, what is the state-of-the-art
> (some prominent links I found are really old, like 10 years or so,
> talking about Emacs 19...)?
>
> Are there actually C++ teams with both Emacs and Visual Studio users? I
> could imagine that e.g. in a Scala (SBT or Maven) project some
> programmers use Eclipse, others Emacs ENSIME, and they can happily
> co-exist, but would a similar co-existance be possible in a C++ project
> on Windows with Emacs and Visual Studio?
Absolutely. I only use the VS IDE for debugging (which seldom happens.)
99% of the time is coding and everything is done from Emacs. You can use
CMake too, that creates VC project files, makefiles, etc from the same
build specification.
next prev parent reply other threads:[~2014-10-26 2:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 20:35 Ways to use Emacs when programming C++ with Visual Studio? Thorsten Jolitz
2014-10-26 2:47 ` Óscar Fuentes [this message]
2014-10-27 8:41 ` Thorsten Jolitz
[not found] <mailman.11982.1414182986.1147.help-gnu-emacs@gnu.org>
2014-11-07 1:09 ` Emanuel Berg
2014-11-07 10:21 ` Thorsten Jolitz
[not found] ` <mailman.13103.1415355713.1147.help-gnu-emacs@gnu.org>
2014-11-10 0:51 ` 3246251196ryan
2014-11-10 10:43 ` Thorsten Jolitz
[not found] ` <mailman.13369.1415616253.1147.help-gnu-emacs@gnu.org>
2014-11-11 14:28 ` 3246251196ryan
2014-11-24 23:00 ` Ken Goldman
[not found] ` <mailman.14499.1416870041.1147.help-gnu-emacs@gnu.org>
2014-11-25 23:40 ` Mike
2014-11-26 14:55 ` Ken Goldman
2014-12-02 20:50 ` Robert Thorpe
2014-12-02 20:54 ` Óscar Fuentes
[not found] ` <mailman.14674.1417013766.1147.help-gnu-emacs@gnu.org>
2014-11-26 21:54 ` mflynn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a94j8s39.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).