emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sv: Sv: Christmas wish: Literate Elisp


From: Jonathan Leech-Pepin
Subject: Re: Sv: Sv: Christmas wish: Literate Elisp
Date: Mon, 16 Dec 2019 11:07:16 -0500

Arthur,

Have you happened to have looked at Outshine (https://github.com/alphapapa/outshine)?

It enhances outline-minor-mode and lets it work with standard org-syntax while in comment blocks (and defines hotkeys to swap into an edit buffer that makes it look like a normal Org-Mode buffer).

By keeping the literate syntax in comments you don't break the existing parser.

Regards,
Jon

On Mon, Dec 16, 2019 at 9:03 AM arthur miller <address@hidden> wrote:

Aha 😊

Sorry, I didn’t realized what you ment. I am not sure I know that much of elisp,

but I may try to look at, would be lots of learning for me 😊.

 

Skickades från E-post för Windows 10

 

Från: Stefan Monnier
Skickat: den 16 december 2019 14:41
Till: arthur miller
Kopia: emacs-devel; address@hidden
Ämne: Re: Sv: Sv: Christmas wish: Literate Elisp

 

>> As for using it in Elisp: I don't think there's anything stopping anyone
>> from making such a `literate-elisp-mode` and even arrange for `load` to
>> handle such a file (just like there is already a package that lets
>> `load` work directly on .org files).
> I was able to make readevalloop do what I want. It was rather trivial to

Note that in my comment above I meant it in existing Emacsen,
i.e. without any modification to the C code.
The idea is to make use of existing hooks such as
`load-source-file-function` or `file-name-handler-alist`.

I'm not sure what hook could be used to do the same with
byte-compilation, but in the worst case, an advice should do the trick.


        Stefan

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]