From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Lentic.0.6 and org mode Date: Fri, 09 Jan 2015 18:57:08 +0100 Message-ID: References: <871tn3lvyx.fsf@newcastle.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9doH-00047n-Gn for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:57:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9doE-0007W6-Om for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:57:21 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:54834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9doE-0007VP-IN for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 12:57:18 -0500 In-Reply-To: <871tn3lvyx.fsf@newcastle.ac.uk> (Phillip Lord's message of "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: Phillip Lord Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2015-01-09 17:12, phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > 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))))) I've used a similar configuration #+begin_src emacs-lisp (add-hook 'emacs-lisp-mode-hook (lambda () (setq lentic-init 'lentic-orgel-= org-init))) #+end_src but it's not as nice as in the demo. For instance, the following: #+begin_src emacs-lisp ;;; Code: ;; ** Startup ;; #+begin_src emacs-lisp ;; Turn off mouse interface early in startup to avoid momentary display (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) #+end_src becomes #+begin_src org * Code ;; ** Startup ;; #+begin_src emacs-lisp ;; Turn off mouse interface early in startup to avoid momentary display (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) #+end_src Why the "Startup" is not promoted at the org level? Thanks, Alan =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUsBZ4AAoJEAQNCjtO0uXH4G8H/1c2PCRXUFNT1NDYD2weNOS7 1LbPr4YgW6gzoePy1C0QISeZLEV4Kk2/sRpxRHUv2s2lXfFL/4BCQVVmfooeczRG r3IlBPfgxZnmNnE/m4nTllQUXt7RyefdNfKqVWaZVP/R9OYbCKqbS4IAMcgEwSO9 TylexBJ4/uk7Aro188a6vC1K++G5cBbRB6zrBAXaB/6EINxjz9zYFbhXhHSeFOu0 +rgVNJpz2peQTmLgneZItiQEZwGweZWmOO9yis1bKyLF4+wUAoX0kfYFom1ooTsT vd47y0JVyP5kK6YmpI2RL6ALctUSTGSuCRVJtpiMZd4vxC/Fa6mMYgssm/XVURo= =84dZ -----END PGP SIGNATURE----- --=-=-=--