emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: emacs-orgmode@gnu.org
Subject: Re: Lentic.0.6 and org mode
Date: Fri, 09 Jan 2015 17:12:06 +0000	[thread overview]
Message-ID: <871tn3lvyx.fsf@newcastle.ac.uk> (raw)

I normally do


which just adds some keybindings for you.

Then, do one of

lentic-mode-create-in-selected-window, (C-c,h)
lentic-mode-split-window-below, (C-c,b)
lentic-mode-split-window-right (C-c,r)

Or there are menu items which does the same.

All of these create the "lentic" view, and put in a window as you might
guess. By default, it does indeed come up in fundamental mode (probably
that's not sensible, and I should set it to the same mode as the
starting buffer.

It's configurable, though. By default, the two windows share the same
text (which is nearly the same behaviour as indirect buffers). But they
can also be different (but related). I use a file or dir-local variable
for this. So, the lentic source code uses:

  ((lentic-init . lentic-orgel-org-init)
   (eval . (require 'm-buffer-macro)))))

This gives the behaviour shown in this screen cast.


The eval thing is just to make sure some macros are loaded, so that that
they indent properly, which is an orthogonal issue.

None of this is org or Emacs-lisp specific. I just added that because I
could, and it wasn't that much effort (okay, so it was more effort than
I expected, but there you go). I wrote it in the first place for Clojure
and asciidoc, but am actually using it with clojure and latex.


> Nice!
> I spent some time figuring out how to use it.
> This is what I did eventually:
>   M-xlentic-mode
>   M-xlentic-mode   ;; twice
>   M-x lentic-mode-split-window-below
> Then change the new buffer to the desired mode (Java mode, C++ mode,
> whatever).
> (I was created in fundamental mode).
> Is this the standard way to use it?
> Thierry

> Le 08/01/2015 14:55, Phillip Lord a écrit :
> > I thought some of you might be interested in the new release of my
> > package, lentic. One of the things that it now does is allow
> > multi-modal of editing of Emacs source, using org mode for the
> > documentation. I realise that it's already possible to use ELPA
> > org-babel to write literate el files, or to use outorg.el, but lentic
> > provides a different form of interaction. You can edit the org form or
> > the emacs-lisp form as you choose. The source code of lentic is, itself,
> > written in this way. There is a screen cast linked below which shows
> > what the interaction looks like.
> >
> > Available on MELPA-stable, MELPA and Marmalade
> > https://github.com/phillord/lentic
> > http://www.russet.org.uk/blog/3035
> > https://vimeo.com/116078853
> >
> >

             reply	other threads:[~2015-01-09 17:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09 17:12 Phillip Lord [this message]
2015-01-09 17:57 ` Lentic.0.6 and org mode Alan Schmitt
  -- strict thread matches above, loose matches on Subject: below --
2015-01-09 19:18 Phillip Lord
2015-01-10 12:35 ` Alan Schmitt
2015-01-15 15:54   ` Phillip Lord
2015-01-15 17:24     ` Alan Schmitt
2015-01-15 22:28       ` Phillip Lord
2015-01-16 10:15         ` Alan Schmitt
2015-01-16 11:01           ` Phillip Lord
2015-01-08 13:55 Phillip Lord
2015-01-08 22:24 ` Thierry Banel
2015-01-11 12:33   ` joakim
2015-01-15 16:11     ` Phillip Lord
2015-01-15 20:53       ` Thierry Banel
2015-01-15 22:41         ` Phillip Lord
2015-01-16 18:43           ` Thierry Banel
2015-01-16 20:18             ` Thomas S. Dye
2015-01-16 23:46               ` Phillip Lord

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tn3lvyx.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).