From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: *.ino files as c mode? Date: Thu, 3 Dec 2020 11:41:23 +0100 Message-ID: <20201203104123.GC7554@tuxteam.de> References: <20201203102050.31710.qmail@rahul.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZwgA9U+XZDXt4+m+" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3426"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 03 11:43:19 2020 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 1kkm50-0000nW-Gr for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 11:43:18 +0100 Original-Received: from localhost ([::1]:41008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkm4z-0007lM-Hu for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 05:43:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkm3K-0006pa-Ue for help-gnu-emacs@gnu.org; Thu, 03 Dec 2020 05:41:35 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:50828) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kkm3I-0005gn-FX for help-gnu-emacs@gnu.org; Thu, 03 Dec 2020 05:41:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=eYhLvVUHVYl+QrImFvL7zYB+Z9fR2JCG6OZUbIWJI34=; b=pS2ubIQiskQsTwVJp2jYAec1W4EVAzu+XrEaZR68ylCVayPpTcIICwzhs+2hzLfwTX1sT44GR7f0DHx/S8XY6N6dLtCXLqF8QiVV/IrU1kBSHHVhqal0MAnrRwP9fbkO08VsKDn2w23DXg1ohAFf0NgMgru/W6QLnGMDdY3O57p/3rL3ntwddc6wQ45lyMHTEoUqMNY48acuPNLtBrl6/H9skQvgc/oKElzmHr6UgmhnUID8BHpfZ2yCBiIGOWuASrfgD6XRNLjWEjVki0BhgpphyI5CC9Sm/SbB37pdbpVlyN5XtWVoP/fyR8pbBbBqd/JluD0oFNJkdWJbJOruXA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kkm39-0003Sb-Ub for help-gnu-emacs@gnu.org; Thu, 03 Dec 2020 11:41:23 +0100 Content-Disposition: inline In-Reply-To: <20201203102050.31710.qmail@rahul.net> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:125889 Archived-At: --ZwgA9U+XZDXt4+m+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Thu, Dec 03, 2020 at 02:20:50AM -0800, John Conover wrote: > Possible to set c mode for *.ino files? Most easily you can add the association ".ino" => c-mode to your variable `auto-mode-alist', perhaps in your init file. The left hand side of the association is a regular expression which has to match the file names; in this case, perhaps something like "\\.ino\\'". Something like (add-to-list 'auto-mode-alist c-mode) in your init file might do. Alternatively, you could put something like /* -*- mode: c -*- */ somewhere at the top of your files. For all the other possibilities and their ramifications, see "23.3 Choosing File Modes" in the manual; in the Interwebs here [1]. Cheers [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html - t --ZwgA9U+XZDXt4+m+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/IwNMACgkQBcgs9XrR2kaHogCeL2voPLke4griqwn0cy/3/HUj o9gAn3+UjzQC9dd3lvZA0Byr7bZYdF0G =Kemk -----END PGP SIGNATURE----- --ZwgA9U+XZDXt4+m+--