From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 1CB857EE51 for ; Tue, 28 May 2013 08:00:03 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of lambda.q.q@gmail.com) identity=pra; client-ip=209.85.215.47; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of lambda.q.q@gmail.com designates 209.85.215.47 as permitted sender) identity=mailfrom; client-ip=209.85.215.47; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-la0-f47.google.com) identity=helo; client-ip=209.85.215.47; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="postmaster@mail-la0-f47.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlcBAAVHpFHRVdcvjWdsb2JhbABZhixHv1oWDgEBAQEHCwsJEgYkgk0dATkDDQUfAgUhAhEBJAEFAVCHYAMPBJwvgnmLcINMhFAnDYgUAQUMgRqOFIIrgRMDiRmOIo9bP4Fdgl0 X-IPAS-Result: AlcBAAVHpFHRVdcvjWdsb2JhbABZhixHv1oWDgEBAQEHCwsJEgYkgk0dATkDDQUfAgUhAhEBJAEFAVCHYAMPBJwvgnmLcINMhFAnDYgUAQUMgRqOFIIrgRMDiRmOIo9bP4Fdgl0 X-IronPort-AV: E=Sophos;i="4.87,756,1363129200"; d="scan'208";a="15886928" Received: from mail-la0-f47.google.com ([209.85.215.47]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 May 2013 08:00:02 +0200 Received: by mail-la0-f47.google.com with SMTP id fq12so7005295lab.20 for ; Mon, 27 May 2013 23:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=TtjcmDLfVpt47gEULPQx6LE7vsj8IOGw6FonEqwiQTM=; b=whKpG36YWRe/mWhrwFIIqBB7wZJbHxIn5dP8wSvJcAO1ROUtEl0qbyc4EOBNTiLQfb 8U02ouN3B/rFegf2tL6oRJvlsOJd3w9rGPT3/DcrITik7v/fLgn8MhxBIjwnkYZywyZL uJoo+bPxiY3gQ1Jll6UlLVGgEe8eoLNaRoyoz5sHACDzJMNdW7IdXBj1nsAXYGFnSoUn GZRCq4M1BmdfDZ87IwfCobhDGorMoYQQ5DIn4nAcut6F5i0FCM1JYHGe4iRGyiY4XART fHfTGVmeY6pE3BV2JxAlLMMiVbgLK053FGytvBhxwzt2BcG/u8AEuxSYu1FOl6AHyBpU ALrg== X-Received: by 10.112.171.202 with SMTP id aw10mr15630436lbc.32.1369720801661; Mon, 27 May 2013 23:00:01 -0700 (PDT) Received: from bilbo.ieee.org (h1173.porttelecom.ru. [193.189.68.173]) by mx.google.com with ESMTPSA id g10sm13137808lag.10.2013.05.27.22.59.59 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 27 May 2013 23:00:00 -0700 (PDT) Sender: Ivan Gotovchits From: Ivan Gotovchits To: caml-list@inria.fr Date: Tue, 28 May 2013 09:59:53 +0400 Message-ID: <87li6z8x0m.fsf@ieee.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Caml-list] Setting up OPAM in emacs I've failed to find a good solution for using emacs and opam together (in l= inux).=20 Several options were considered: 1. Start emacs from a properly set up shell.=20 This works fine until you start using =C2=ABopam swith=C2=BB oftenly. Re= starting emacs is not an option for me, because I use it in a daemon mode. 2. Use =C2=ABeval `opam env config`=C2=BB in the begining of a compile-comm= and. This works fine when you switch compiler, but other commands, such as =C2=ABC-c C-s=C2=BB doesn't use new environment. Has anybody solved this problems? I think there should be an easy solution, but I cannot find it myself, due to lack of good knowledge of both opam and emacs-lisp.=20