[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Major and minor modes
From: |
tomas |
Subject: |
Re: Major and minor modes |
Date: |
Wed, 14 Jun 2017 10:51:33 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Jun 14, 2017 at 10:19:01AM +0200, Emanuel Berg wrote:
[...]
> > Then I have this question. One major mode is
> > suitable for a type of data. Everything is text but
> > it is formatted differently. Usually in the same
> > buffer you have several sections with different
> > types [...]
> There are solutions to deal with that but those are
> exceptions [...]
This is a well-known problem for those poor souls dealing
with "things Web", where you have nested languages (CSS
and Javascript in HTML, HTML in PHP and things). Thus,
several approaches to the problem of "multiple major modes"
have developed. But yes, that's a point where we might
need a more "fundamental" solution.
See https://www.emacswiki.org/emacs/MultipleModes
For another, somewhat refreshing, but different approach
(embedding snippets of code in many languages in some text,
and getting the results of executing those snippets back
into the text, the whole literate programming kaboodle),
start, e.g. here: http://orgmode.org/worg/org-contrib/babel/
Careful! this one has rabbit-hole quality ;-)
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAllA+RUACgkQBcgs9XrR2kZ4dACcCNbQMKUzRgcmjoqZSdiQcdOE
LpwAn35uKBxojdDn4WkwQ25/1Bb5GpNt
=ijLS
-----END PGP SIGNATURE-----
- Re: Major and minor modes, (continued)
- Re: Major and minor modes, Jean-Christophe Helary, 2017/06/16
- Re: Major and minor modes, Emanuel Berg, 2017/06/16
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, Narendra Joshi, 2017/06/17
- Re: Major and minor modes, Krishnakant, 2017/06/19
- Re: Major and minor modes, Krishnakant, 2017/06/14
- RE: Major and minor modes, Phillip Lord, 2017/06/14
Re: Major and minor modes, Emanuel Berg, 2017/06/13
- Re: Major and minor modes, Héctor Lahoz, 2017/06/14
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes,
tomas <=
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, tomas, 2017/06/14
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, Emanuel Berg, 2017/06/14
- Re: Major and minor modes, tomas, 2017/06/14
Re: Major and minor modes, Barry Margolin, 2017/06/14