From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mrf Newsgroups: gmane.emacs.help Subject: Re: Running makefiles from emacs Date: Mon, 28 Jun 2021 07:14:10 +0300 Message-ID: <87pmw6oc1z.fsf@cock.li> References: <87tulibyap.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20762"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.8; emacs 27.2 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 28 06:19:58 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxikW-0005EC-TK for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Jun 2021 06:19:58 +0200 Original-Received: from localhost ([::1]:44038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxikV-0003mm-VX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Jun 2021 00:19:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxik5-0003md-EX for help-gnu-emacs@gnu.org; Mon, 28 Jun 2021 00:19:29 -0400 Original-Received: from mail.cock.li ([37.120.193.124]:59682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxik3-0001SU-GB for help-gnu-emacs@gnu.org; Mon, 28 Jun 2021 00:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1624853960; bh=WTIKK6QZpyCB/f5IlGaxEmysTH/tgcn1yEQidGR46vM=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=rxhmLPTXaTJ3VMJNwQMfm/OoqlYDSmrovJDBN+OvRE0gGYbjaxYFB7GohcC8b4ZRw 0hJKKvtoj5gaPqVTtc8ZqJLufjdBp3P2yPBFDR92P2rKhfNPu8p+ZkE6T+iHaIcSYa UHgfLkhpJQrPnThXJMKty5sl/dqse6yykNKfwNa7Ipp4v39yOAN91L5kwTCiE98G95 2koy3728gsB2nSRQOc792w+6S769YNf9Pz7PGqMNQZak28AHR90VdBxrAx3OLMTVNI AyKNRYEQLdB1qm5cXGo577jvmTspDx9OpzEiJfqdQLmLfWrcqS0ZX/hhPDLMXYh7ki utw6TSu6AAWyw== In-reply-to: <87tulibyap.fsf@zoho.eu> Received-SPF: pass client-ip=37.120.193.124; envelope-from=joinlaw@cock.li; helo=mail.cock.li X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_PBL=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131310 Archived-At: Emanuel Berg via Users list for the GNU Emacs text editor writes: > The default command for `compile' is "make", I have changed > that like this > > (setq compile-command "make -j 4 -s -k ") > (setq compilation-read-command nil) > > This is maybe useful as well And also it would be better to set this variable in directory local variable using this command: M-x add-dir-local-variable which will create .dir-locals.el inside your project or if you share small single file scripts or C code you can include it as file local variable: M-x add-file-local-variable which will include it as comment in the bottem of file where emacs can parse it with its special format and also there can be place with one line at the top of file with: M-x add-file-local-variable-prop-line > (setq compilation-scroll-output t) Nice!