PceEmacs newbie question about auto-formatting

19 views
Skip to first unread message

Pasi Xyy

unread,
Aug 14, 2018, 1:04:30 PM8/14/18
to SWI-Prolog
Hi forumers!

Can I auto-format a prolog file? I mean have all predicates and comments etc. pretty printed like a  portray_clause/1 ?? I would like to auto-format while I am editing a file in the PceEmacs. I have very little experience about Emacs.

Thanks.

Jan Wielemaker

unread,
Aug 20, 2018, 4:11:38 AM8/20/18
to Pasi Xyy, SWI-Prolog
Single-line auto-indent is provided by the TAB key. PceEmacs does not
provide a file/block re-indenter. AFAIK, there is still no really good
auto indenter available for Prolog. That is a shame :( All the stuff
to build one is available in SWI-Prolog and it is a nice challenge to
exploit this ...

Cheers --- Jan

>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swi-prolog+...@googlegroups.com
> <mailto:swi-prolog+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/swi-prolog.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages