<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:cc="http://web.resource.org/cc/"
    xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<title>Marcin Borkowski: Homepage</title>
<link>https://mbork.pl/Homepage</link>
<atom:link href="https://mbork.pl?action=rss;rcidonly=2026-06-22_Disabling_minor_modes_with_local_variables" rel="self" type="application/rss+xml" />
<description>Strona domowa Marcina Borkowskiego</description>
<pubDate>Mon, 22 Jun 2026 17:19:29 GMT</pubDate>
<lastBuildDate>Mon, 22 Jun 2026 17:19:29 GMT</lastBuildDate>
<generator>Oddmuse</generator>

<item>
<title>Disabling minor modes with local variables</title>
<link>https://mbork.pl/2026-06-22_Disabling_minor_modes_with_local_variables</link>
<guid>https://mbork.pl/2026-06-22_Disabling_minor_modes_with_local_variables</guid>
<description>I’ve known about file local variables for a long time. I also knew about the eval keyword, which can be used as a file variable, but instead of binding the given value to the (non-existent) variable eval, Emacs evaluates it. This is often useful, but the usefulness is diminished by the fact that Emacs nags the user whether it is safe to evaluate a form provided that way. (Of course, it is reasonable security-wise, and that’s why I didn’t set enable-local-variables to :all – I still prefer the nagging to the risk of executing untrusted code!) There is, however, one case where the eval form seems safe and useful enough to grant an exception: enabling or disabling minor modes.</description>
<pubDate>Mon, 22 Jun 2026 17:19:29 GMT</pubDate>
<comments>https://mbork.pl/Comments_on_2026-06-22_Disabling_minor_modes_with_local_variables</comments>
<dc:contributor>mbork</dc:contributor>
<wiki:status>new</wiki:status>
<wiki:importance>major</wiki:importance>
<wiki:version>1</wiki:version>
<wiki:history>https://mbork.pl?action=history;id=2026-06-22_Disabling_minor_modes_with_local_variables</wiki:history>
<wiki:diff>https://mbork.pl?action=browse;diff=1;id=2026-06-22_Disabling_minor_modes_with_local_variables</wiki:diff>
</item>
</channel>
</rss>
