From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Bock Newsgroups: gmane.emacs.help Subject: Re: Continuation of comments in f90-mode with auto-fill Date: Wed, 14 Jan 2015 18:15:24 -0700 Message-ID: References: <8761c92gci.fsf@deb.home.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1421284586 28593 80.91.229.3 (15 Jan 2015 01:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 01:16:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Bernardo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 02:16:21 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 1YBZ2p-000196-DX for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2015 02:16:19 +0100 Original-Received: from localhost ([::1]:48720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBZ2o-0004n0-3f for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Jan 2015 20:16:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBZ2c-0004mu-US for help-gnu-emacs@gnu.org; Wed, 14 Jan 2015 20:16:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBZ2b-0000CW-Kv for help-gnu-emacs@gnu.org; Wed, 14 Jan 2015 20:16:06 -0500 Original-Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:41531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBZ2b-0000CS-GJ for help-gnu-emacs@gnu.org; Wed, 14 Jan 2015 20:16:05 -0500 Original-Received: by mail-ie0-f170.google.com with SMTP id rd18so12306247iec.1 for ; Wed, 14 Jan 2015 17:16:05 -0800 (PST) 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 :cc:content-type; bh=DyYeQL7JORgbTVmFuGwlWZjuFGKdW2H3wrqovPUrBiY=; b=Q1gztzWYk75wQg3pdiKQHFtGzoSl1H5An/0Sb4G3b3Ixk6kUFnvqz6ZYXfLPg+z/O9 XRiEeh6WlcSbPT/EcDUcVA5dTqdgFH9wL2sg/yYYKTMu0uv8jd9qv8BuG+IC05fQKcsI vGgsPOgeSR1XI2nCVfA+uLCnQbVhTo9Ht6n2KrPKcBUkoBT9uj653qh6jx+8vPzssr10 bk8unSH4rewfyovvNtJu+BdbuRwHiinLKpF5KB7ijnu1igPXm3RnnC3p+656Y8WRXEZk SB21dQmdvAVp8hWBPStidLZ1TwImlj7mbJv22ZbnbcCW2NbuVlfwZl5trgE8d4Ukn3kf +gng== X-Received: by 10.107.133.17 with SMTP id h17mr7468395iod.47.1421284565048; Wed, 14 Jan 2015 17:16:05 -0800 (PST) Original-Received: by 10.107.14.136 with HTTP; Wed, 14 Jan 2015 17:15:24 -0800 (PST) In-Reply-To: <8761c92gci.fsf@deb.home.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22a 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:102082 Archived-At: Hi Bernardo, that's awesome! Thanks! However, it's not quite working, although it's almost there. I added this to my ~/.emacs file: (add-hook 'f90-mode-hook (lambda () (setq comment-start "!> ") (setq comment-continue "!! "))) Hoping to be able to type something like this with the right indentation: !> A subroutine. !! !! @param a Parameter a. However, what is happening is the following. I start the first line and hit enter at the end. The cursor is positioned underneath the "!>", so all is good. But no "!! " is inserted. Then I type "!! @param..." and hit enter, and the line is moved all the way to the left, so not aligned anymore with the comments above it. Could you suggest some other variable(s) I could change? Thanks already, nick On Wed, Jan 14, 2015 at 2:38 PM, Bernardo wrote: > >> When in f90-mode with auto-fill-mode, emacs continues a comment by >> indenting the new line and inserting a single '!' character at the >> beginning. How do I change this string, say to "!! "? > > completely untested but may give you an idea: > > (add-hook 'f90-hook > (lambda () > (setq comment-start "!! "))) >