From mboxrd@z Thu Jan 1 00:00:00 1970 From: phillip.lord@newcastle.ac.uk (Phillip Lord) Subject: Re: Lentic.0.6 and org mode Date: Fri, 09 Jan 2015 17:12:06 +0000 Message-ID: <871tn3lvyx.fsf@newcastle.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9d6c-0003Bl-Au for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:12:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9d6Z-0006tr-KW for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:12:14 -0500 Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:42250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9d6Z-0006tf-EW for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:12:11 -0500 Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1Y9d6U-0003ya-FI for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 17:12:06 +0000 Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Y9d6U-0005XP-LI for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 17:12:06 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I normally do (global-lentic-start-mode) 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: ((emacs-lisp-mode . ((lentic-init . lentic-orgel-org-init) (eval . (require 'm-buffer-macro))))) This gives the behaviour shown in this screen cast. https://vimeo.com/116078853 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. Phil > Nice! >=20 > I spent some time figuring out how to use it. >=20 > 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). >=20 > Is this the standard way to use it? >=20 > Thierry > Le 08/01/2015 14:55, Phillip Lord a =C3=A9crit : > > 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 > > > >