[ESS] polymode, tangentially related to ESS

chris warth cwarth at fhcrc.org
Wed Mar 12 01:39:56 CET 2014


You're right, the font changes are no doubt due to the default
configuration of Aquamacs.  But isn't that part of why you have
different major modes?   For R code you might want a monospaced font,
for markdown a variable spaced font, etc.   Ensuring all the modes use
the same font just papers over the real deficiency, the fact that the
mode is associated with the entire buffer instead of a region.

I stumbled across a page describing Multimode editing in emacs [1].
(polymode isn't on the list yet.)  The oldest multi-mode
implementation [2] has a good discussion of using indirect buffers and
the major surgery it would take to associate mode with buffer range.
This would probably be a very daunting task to muck about in the emacs
internals at such a low level but I think it would be the "right" way
to do multimode.

No matter, I'll go fix my fonts.  Vitalie, I'll submit screenshots in
github just so there is a record of this issue.

----
[1] http://www.emacswiki.org/emacs/MultipleModes
[2] http://www.loveshack.ukfsn.org/emacs/multi-mode.el

On Tue, Mar 11, 2014 at 4:55 PM, Vincent Goulet <vincent.goulet at me.com> wrote:
> Le 2014-03-11 à 18:14, Vitalie Spinu <spinuvit at gmail.com> a écrit :
>
>> The font change problem I don't quite follow. Aren't all
>> buffers suppose to use the same default font?
>
> Chris is using Aquamacs. From my Emacs for OS X Modified page (http://vgoulet.act.ulaval.ca/en/emacs/mac/):
>
> "I used Aquamacs myself for two years, but I got tired of disabling the newer "features" in each release of the application. For me Aquamacs insists too much on opening new frames and on playing with fonts."
>
> Aquamacs' developer appears to find it a good idea to have different fonts for different modes...
>
> v.
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list