<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Readul Hasan Chayan [Heemayl] (Posts about elisp)</title><link>https://heemayl.net/</link><description></description><atom:link href="https://heemayl.net/categories/elisp.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:me@heemayl.net"&gt;Readul Hasan Chayan [Heemayl]&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-top: 10px; margin-bottom: 5px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;
</copyright><lastBuildDate>Wed, 15 Jan 2025 16:49:20 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Emacs: Change IPython traceback background color from yellow to black</title><link>https://heemayl.net/posts/emacs-change-ipython-traceback-background-color-from-yellow-to-black/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;I use &lt;a href="https://github.com/jorgenschaefer/elpy"&gt;&lt;code&gt;elpy&lt;/code&gt; minor-mode &lt;/a&gt; for my local Python development work and it works great for me. Quickly dropping into a &lt;a href="https://github.com/ipython/ipython"&gt;&lt;code&gt;ipython&lt;/code&gt;&lt;/a&gt; shell after evaluating the current buffer or a particular region (using &lt;a href="https://elpy.readthedocs.io/en/latest/ide.html#command-elpy-shell-send-region-or-buffer"&gt;&lt;code&gt;elpy-shell-send-region-or-buffer&lt;/code&gt;&lt;/a&gt;) is a great way to play around without even needing to invoke a debugger as the local and global namespaces are readily available there. There's a very nagging issue with &lt;code&gt;ipython&lt;/code&gt; though&lt;/p&gt;&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-change-ipython-traceback-background-color-from-yellow-to-black/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><category>python</category><guid>https://heemayl.net/posts/emacs-change-ipython-traceback-background-color-from-yellow-to-black/</guid><pubDate>Tue, 14 Jan 2025 14:18:03 GMT</pubDate></item><item><title>Emacs: Buffer-switch indicator</title><link>https://heemayl.net/posts/emacs-buffer-switch-indicator/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;Most of the time, I have many windows open in Emacs, so it really helps to have an indicator of the current window (and buffer) especially when switching between windows.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-buffer-switch-indicator/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><guid>https://heemayl.net/posts/emacs-buffer-switch-indicator/</guid><pubDate>Thu, 15 Aug 2024 08:10:41 GMT</pubDate></item><item><title>Emacs: Managing Python virtual environments</title><link>https://heemayl.net/posts/emacs-managing-python-virtual-environments/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;a href="https://github.com/jorgenschaefer/elpy"&gt;&lt;code&gt;elpy&lt;/code&gt;&lt;/a&gt; is a great minor-mode for &lt;a href="https://github.com/emacsmirror/python-mode"&gt;&lt;code&gt;python-mode&lt;/code&gt;&lt;/a&gt; (major-mode) in Emacs, but managing multiple venvs (virtual environments) has always been tricky as &lt;a href="https://github.com/jorgenschaefer/pyvenv"&gt;&lt;code&gt;pyvenv&lt;/code&gt;&lt;/a&gt; (that &lt;a href="https://github.com/jorgenschaefer/elpy"&gt;&lt;code&gt;elpy&lt;/code&gt;&lt;/a&gt; uses) &lt;a href="https://github.com/jorgenschaefer/pyvenv/issues/6"&gt;doesn't have a way to have &lt;em&gt;buffer-local&lt;/em&gt; venv (virtual environment) -- any venv activated using e.g. &lt;code&gt;pyvenv-activate&lt;/code&gt;/&lt;code&gt;pyvenv-workon&lt;/code&gt; is (process) global.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-managing-python-virtual-environments/"&gt;Read more…&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><category>python</category><guid>https://heemayl.net/posts/emacs-managing-python-virtual-environments/</guid><pubDate>Wed, 17 Jul 2024 15:07:40 GMT</pubDate></item><item><title>Emacs: Auto-format strings to a max column width in `python-mode`</title><link>https://heemayl.net/posts/emacs-auto-format-strings-to-a-max-column-width-in-python-mode/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;I use &lt;a href="https://github.com/pythonic-emacs/blacken"&gt;&lt;code&gt;blacken-mode&lt;/code&gt;&lt;/a&gt; (uses &lt;a href="https://github.com/psf/black"&gt;&lt;code&gt;black&lt;/code&gt;&lt;/a&gt;) to auto-format Python code on save -- it works great but not much helpful while dealing with strings. For example, if I want to set a max limit on columns (characters) per line when writing a string, &lt;a href="https://github.com/psf/black"&gt;&lt;code&gt;black&lt;/code&gt;&lt;/a&gt; is of no help. So I needed to come up with something in &lt;code&gt;emacs&lt;/code&gt; that does the &lt;em&gt;auto-format&lt;/em&gt; of strings -- set a max limit &lt;em&gt;on-the-fly&lt;/em&gt; on number of columns per line for writing strings.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-auto-format-strings-to-a-max-column-width-in-python-mode/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><category>python</category><guid>https://heemayl.net/posts/emacs-auto-format-strings-to-a-max-column-width-in-python-mode/</guid><pubDate>Fri, 28 Jun 2024 16:05:22 GMT</pubDate></item><item><title>Emacs: Dynamic buffer-local fringes</title><link>https://heemayl.net/posts/emacs-dynamic-buffer-local-fringes/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;Emacs has a global &lt;a href="https://www.gnu.org/software/emacs/manual/html_node/emacs/Fringes.html"&gt;&lt;code&gt;fringe-mode&lt;/code&gt;&lt;/a&gt; for fringes, which I always keep disabled as it takes a bit of space in the frame and I like to start typing the first character on a line to the very left. But there are some cases where fringes are quite useful e.g. when &lt;a href="https://github.com/flycheck/flycheck"&gt;&lt;code&gt;flycheck&lt;/code&gt;&lt;/a&gt; shows different checker warnings/errors in code, it uses fringes (if enabled) to have a nice arrow to indicate the line(s) with the warnings/errors -- great to have a quick glance at everything.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-dynamic-buffer-local-fringes/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><category>gnu/linux</category><guid>https://heemayl.net/posts/emacs-dynamic-buffer-local-fringes/</guid><pubDate>Sun, 23 Jun 2024 08:31:48 GMT</pubDate></item><item><title>Emacs recipe for starting tensorboard server</title><link>https://heemayl.net/posts/emacs-recipe-for-starting-tensorboard-server/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;code&gt;tensorboard&lt;/code&gt; is a quite popular among deep learning practitioners for experiment tracking. I also use it often, but what was bothering me for a while was to start the server (using &lt;code&gt;tensorboard&lt;/code&gt; command) on one &lt;code&gt;emacs&lt;/code&gt; buffer every time I want to track something. It gets tedious very quickly considering restarts as well. So, I've written a tiny &lt;code&gt;elisp&lt;/code&gt; recipe to start/restart &lt;code&gt;tensorboard&lt;/code&gt; directly from the (Python) file buffer (&lt;code&gt;python-mode&lt;/code&gt;) in &lt;code&gt;emacs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/emacs-recipe-for-starting-tensorboard-server/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>ai/ml/nn</category><category>elisp</category><category>emacs</category><category>pytorch</category><guid>https://heemayl.net/posts/emacs-recipe-for-starting-tensorboard-server/</guid><pubDate>Mon, 19 Dec 2022 11:04:50 GMT</pubDate></item><item><title>Emacs: Invoke search engine on browser with search term</title><link>https://heemayl.net/posts/invoke-search-engine-on-browser-with-search-term-from-emacs/</link><dc:creator>Readul Hasan Chayan [Heemayl]</dc:creator><description>&lt;div&gt;&lt;p&gt;As I do most of my daily works on &lt;code&gt;emacs&lt;/code&gt;, it's the only program always running on my system. So from time to time I try to create small recipes to make my life easier while using it.&lt;/p&gt;
&lt;p&gt;Recently I thought of an idea to invoke the search engine on browser with search term directly from &lt;code&gt;emacs&lt;/code&gt;; so essentially I don't want to go to browser and search for a term, it will do that for me.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://heemayl.net/posts/invoke-search-engine-on-browser-with-search-term-from-emacs/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>elisp</category><category>emacs</category><guid>https://heemayl.net/posts/invoke-search-engine-on-browser-with-search-term-from-emacs/</guid><pubDate>Thu, 08 Sep 2022 08:49:15 GMT</pubDate></item></channel></rss>