From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: make buffer be c++ mode? Date: Sat, 23 May 2015 15:14:20 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1432419298 7707 80.91.229.3 (23 May 2015 22:14:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 22:14:58 +0000 (UTC) To: Jai Dayal , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 24 00:14:55 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YwHh1-0008IN-4p for geh-help-gnu-emacs@m.gmane.org; Sun, 24 May 2015 00:14:55 +0200 Original-Received: from localhost ([::1]:38759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwHh0-0003FJ-5p for geh-help-gnu-emacs@m.gmane.org; Sat, 23 May 2015 18:14:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwHgo-0003Ez-RK for help-gnu-emacs@gnu.org; Sat, 23 May 2015 18:14:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YwHgo-0006k4-0u for help-gnu-emacs@gnu.org; Sat, 23 May 2015 18:14:42 -0400 Original-Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:35655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwHgn-0006jy-Rr for help-gnu-emacs@gnu.org; Sat, 23 May 2015 18:14:41 -0400 Original-Received: by obcus9 with SMTP id us9so34262718obc.2 for ; Sat, 23 May 2015 15:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=9fEuC8hpLDSA+fw9Go9n4MEwxZuc7EUjET8hlwo8qCk=; b=vAFYdxFpektm9zgIW/aI0FFRrmYH6qvbZxpg1r15N6UO+cH4cKxzVCldYF9dWokD83 wWyk7etA4UIi3MdNj1e6xx/P84KtF6yWFp6Vv8A5sxvMYTWCrL8hX/Ndx/7JW5Xuouel tzR3KzMiitTEm8SE8JW+HudyeX2HJqpSsZ93FmPUgzKjB+U22jpD4XZerYmtePxBEV5C D1pk1dZ5aj+Q9EkYSe+k/y2OLigdvaZrT/olLIyoFxrzX7DnHtbuLCp9pS+uvgqAqNYG 8hHhSuLhxnCQN1uqBx1KFjfylXzvP5ctctGB7ZTqeSDxC5svuQQiiPuQA3KcOekMe7+0 BeDw== X-Received: by 10.182.213.99 with SMTP id nr3mr11574071obc.5.1432419281416; Sat, 23 May 2015 15:14:41 -0700 (PDT) Original-Received: by 10.76.168.70 with HTTP; Sat, 23 May 2015 15:14:20 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104539 Archived-At: Jai Dayal wrote: > I have a file that I've opened with a .cu extension. It's C++ code written > for Cuda. How do I force Emacs to display the buffer as if it were C mode? > I just want to do it just for this buffer. M-x c++-mode RET should do the trick. -- john