[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fortran 90 Code alignments
From: |
Eli Zaretskii |
Subject: |
Re: Fortran 90 Code alignments |
Date: |
Tue, 27 May 2003 11:22:10 +0300 |
> From: ferhun_caner@yahoo.com (Dr. F.C.Caner)
> Newsgroups: gnu.emacs.help
> Date: 27 May 2003 00:23:58 -0700
>
> I am wondering if there is a way to alingn a fortran 90/95 code
> properly. The f90 mode that comes with emacs does not do that AFAIK.
> For example, I would like
>
> real(kind=doublep), dimension(:,:), allocatable :: coords
> real(kind=doublep), dimension(:), allocatable :: disp
> real(kind=doublep), dimension(1:6) :: stress
> real(kind=doublep) :: vertdisp, gaussp
>
> to be
>
> real(kind=doublep), dimension(:,:), allocatable :: coords
> real(kind=doublep), dimension(:), allocatable :: disp
> real(kind=doublep), dimension(1:6) :: stress
> real(kind=doublep) :: vertdisp, gaussp
>
> automatically. Is ther a package, a command or similar that does this?
I have the function indent-relative bound to M-i, and type M-i
whenever I need to align text like you want above. Is that what you
want?