<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.komputilo.org/index.php?action=history&amp;feed=atom&amp;title=Emacs_rc_file</id>
	<title>Emacs rc file - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.komputilo.org/index.php?action=history&amp;feed=atom&amp;title=Emacs_rc_file"/>
	<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Emacs_rc_file&amp;action=history"/>
	<updated>2026-11-01T13:12:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://tech.komputilo.org/index.php?title=Emacs_rc_file&amp;diff=847&amp;oldid=prev</id>
		<title>Joosteto at 15:19, 19 November 2025</title>
		<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Emacs_rc_file&amp;diff=847&amp;oldid=prev"/>
		<updated>2025-11-19T15:19:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:19, 19 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :tail-mode &#039;host)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :tail-mode &#039;host)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;; 3. Define the LaTeX Inner Mode (.. math::)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; -- NEW&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;; 3. Define the LaTeX Inner Mode (.. math::)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(define-innermode poly-rst-math-innermode&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(define-innermode poly-rst-math-innermode&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :mode &#039;latex-mode&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :mode &#039;latex-mode&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;; 4. Define the Combined Mode&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;; 4. Define the Combined Mode&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;;    Note: We added &#039;poly-rst-math-innermode&#039; to the list below&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(define-polymode poly-rst-mixed-mode&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(define-polymode poly-rst-mixed-mode&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :hostmode &#039;poly-rst-hostmode&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  :hostmode &#039;poly-rst-hostmode&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joosteto</name></author>
	</entry>
	<entry>
		<id>https://tech.komputilo.org/index.php?title=Emacs_rc_file&amp;diff=846&amp;oldid=prev</id>
		<title>Joosteto: Created page with &quot; &lt;nowiki&gt; ;;Remove trailing whitespace before saving a file: (add-hook &#039;write-file-hooks &#039;delete-trailing-whitespace)  ;;Don&#039;t use tabs: (setq-default indent-tabs-mode nil);...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.komputilo.org/index.php?title=Emacs_rc_file&amp;diff=846&amp;oldid=prev"/>
		<updated>2025-11-19T09:26:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;nowiki&amp;gt; ;;Remove trailing whitespace before saving a file: (add-hook &amp;#039;write-file-hooks &amp;#039;delete-trailing-whitespace)  ;;Don&amp;#039;t use tabs: (setq-default indent-tabs-mode nil);...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &amp;lt;nowiki&amp;gt;&lt;br /&gt;
;;Remove trailing whitespace before saving a file:&lt;br /&gt;
(add-hook &amp;#039;write-file-hooks &amp;#039;delete-trailing-whitespace)&lt;br /&gt;
&lt;br /&gt;
;;Don&amp;#039;t use tabs:&lt;br /&gt;
(setq-default indent-tabs-mode nil);&lt;br /&gt;
&lt;br /&gt;
;; In Makefiles you do want tabs, so add in the Makefiles themelves:&lt;br /&gt;
;; # Local Variables:&lt;br /&gt;
;; # indent-tabs-mode: t&lt;br /&gt;
;; # End:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;; Normally, when the cursor moves just one line below or aboev&lt;br /&gt;
;; the visable edit window, the window moves many lines (half&lt;br /&gt;
;; the visable area). With this, it just moves one line.&lt;br /&gt;
(setq scroll-step 1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;; -------------------------&lt;br /&gt;
;; POLYMODE CONFIGURATION&lt;br /&gt;
;; -------------------------&lt;br /&gt;
&lt;br /&gt;
;;;Steps to enable the polymode emacs package:&lt;br /&gt;
;;;&lt;br /&gt;
;;(require &amp;#039;package)&lt;br /&gt;
;;(add-to-list &amp;#039;package-archives &amp;#039;(&amp;quot;melpa&amp;quot; . &amp;quot;https://melpa.org/packages/&amp;quot;) t)&lt;br /&gt;
;;(package-initialize)&lt;br /&gt;
;;;;in emacs, type:&lt;br /&gt;
;;;; M-x package-refresh-contents [ENTER]&lt;br /&gt;
;;;; M-x package-install [ENTER] polymode [ENTER]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(require &amp;#039;polymode)&lt;br /&gt;
&lt;br /&gt;
;; 1. Define the Host Mode (RST)&lt;br /&gt;
(define-hostmode poly-rst-hostmode :mode &amp;#039;rst-mode)&lt;br /&gt;
&lt;br /&gt;
;; 2. Define the Python Inner Mode (.. plot::)&lt;br /&gt;
(define-innermode poly-rst-plot-innermode&lt;br /&gt;
  :mode &amp;#039;python-mode&lt;br /&gt;
  :head-matcher &amp;quot;^\\.\\. plot::.*$&amp;quot;&lt;br /&gt;
  :tail-matcher &amp;quot;^[^ \t\n]&amp;quot;&lt;br /&gt;
  :head-mode &amp;#039;host&lt;br /&gt;
  :tail-mode &amp;#039;host)&lt;br /&gt;
&lt;br /&gt;
;; 3. Define the LaTeX Inner Mode (.. math::) -- NEW&lt;br /&gt;
(define-innermode poly-rst-math-innermode&lt;br /&gt;
  :mode &amp;#039;latex-mode&lt;br /&gt;
  :head-matcher &amp;quot;^\\.\\. math::.*$&amp;quot;&lt;br /&gt;
  :tail-matcher &amp;quot;^[^ \t\n]&amp;quot;&lt;br /&gt;
  :head-mode &amp;#039;host&lt;br /&gt;
  :tail-mode &amp;#039;host)&lt;br /&gt;
&lt;br /&gt;
;; 4. Define the Combined Mode&lt;br /&gt;
;;    Note: We added &amp;#039;poly-rst-math-innermode&amp;#039; to the list below&lt;br /&gt;
(define-polymode poly-rst-mixed-mode&lt;br /&gt;
  :hostmode &amp;#039;poly-rst-hostmode&lt;br /&gt;
  :innermodes &amp;#039;(poly-rst-plot-innermode poly-rst-math-innermode))&lt;br /&gt;
&lt;br /&gt;
;; 5. Auto-activate this mode for .rst files&lt;br /&gt;
(add-to-list &amp;#039;auto-mode-alist &amp;#039;(&amp;quot;\\.rst\\&amp;#039;&amp;quot; . poly-rst-mixed-mode))&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joosteto</name></author>
	</entry>
</feed>