From: Nicolas Bock <nicolasbock@gmail.com>
To: John Mastro <john.b.mastro@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Continuation of comments in f90-mode with auto-fill
Date: Thu, 15 Jan 2015 14:25:57 -0700 [thread overview]
Message-ID: <CAPMKG4A5h-LS6=A5UUKe2LagOirPKZ-PWoKNWgscYSk68z6sUw@mail.gmail.com> (raw)
In-Reply-To: <CAOj2CQQp3EoQ5-6sBJ_CcV6UshtY-zan7t3-J_QTS_epAajunQ@mail.gmail.com>
On Thu, Jan 15, 2015 at 12:34 PM, John Mastro <john.b.mastro@gmail.com> wrote:
> Nicolas Bock <nicolasbock@gmail.com> wrote:
>> Reading more in the manual I came across the key binding 'M-j'. When I type
>>
>> !> beginning...
>>
>> Press M-j, I get
>>
>> !> beginning...
>> !
>>
>> i.e. only a single '!' is inserted and not two as specified by
>> comment-continue. I read through the implementation in
>> newcomment.el::comment-indent-new-line() but I don't understand lisp
>> sufficiently to see where the single '! ' comes from. Could someone
>> give me a hint?
>
> I'm not familiar with Fortran or `f90-mode', so I could be missing
> something, but this seems to work for me:
>
> (add-hook 'f90-mode-hook
> (lambda ()
> (setq-local adaptive-fill-mode nil)
> (setq-local fill-prefix "!! ")))
>
M-j is inserting "!! " now, but aligns it all the way to the left :(
> --
> john
next prev parent reply other threads:[~2015-01-15 21:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 21:38 Continuation of comments in f90-mode with auto-fill Bernardo
2015-01-15 1:15 ` Nicolas Bock
2015-01-15 18:43 ` Nicolas Bock
2015-01-15 19:34 ` John Mastro
2015-01-15 21:25 ` Nicolas Bock [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-01-14 12:39 Nicolas Bock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPMKG4A5h-LS6=A5UUKe2LagOirPKZ-PWoKNWgscYSk68z6sUw@mail.gmail.com' \
--to=nicolasbock@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=john.b.mastro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.