<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>emacs &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/tag/emacs-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Thu, 30 May 2024 01:34:45 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>emacs &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>Uniquify your Buffer Names in emacs with use-package</title>
		<link>https://emacstragic.net/uncategorized/uniquify-your-buffer-names-in-emacs-with-use-package/</link>
					<comments>https://emacstragic.net/uncategorized/uniquify-your-buffer-names-in-emacs-with-use-package/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 11 May 2016 23:58:54 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1265</guid>

					<description><![CDATA[Recently I have been working on projects that often have multiple&#160;files of the same name. By default emacs doesn&#8217;t give much information to help you switch between the buffers of open files of the same name. At the same moment that I was thinking I need to find a solution to this Pragmatic Emacs posted [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Recently I have been working on projects that often have multiple&nbsp;files of the same name. By default emacs doesn&#8217;t give much information to help you switch between the buffers of open files of the same name. At the same moment that I was thinking I need to find a solution to this <a href="http://pragmaticemacs.com/">Pragmatic Emacs</a> posted a <a href="http://pragmaticemacs.com/emacs/uniquify-your-buffer-names/">nice little solution using uniquify</a>.<br />
This is how do the same using <code>use-package</code>:</p>
<pre class="lang:lisp decode:true " title="load uniquify with use-package">(use-package uniquify
  :config
  (setq uniquify-buffer-name-style 'forward)
  (setq uniquify-separator "/")
  (setq uniquify-after-kill-buffer-p t)    ; rename after killing uniquified
  (setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers
  )
</pre>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/uniquify-your-buffer-names-in-emacs-with-use-package/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1265</post-id>	</item>
		<item>
		<title>installing emacs in cygwin</title>
		<link>https://emacstragic.net/emacs/installing-emacs-in-cygwin/</link>
					<comments>https://emacstragic.net/emacs/installing-emacs-in-cygwin/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 27 Feb 2013 00:45:00 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[emacs]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=714</guid>

					<description><![CDATA[Update: See my other post, launching emacs from cygwin There are a few tricks to installing emacs in cygwin. Here&#8217;s what I do. Installing cygwin First, install cygwin. Then, install the very nice tool apt-cyg which makes package management much easier in cygwin. Then to save yourself lots of agony of trying to work out [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Update: See my other post, <a title="Launch emacs from cygwin" href="/launch-emacs-from-cygwin/">launching emacs from cygwin</a><br />
There are a few tricks to installing emacs in cygwin. Here&#8217;s what I do.</p>
<h2>Installing cygwin</h2>
<p>First, install <a href="http://cygwin.com/install.html">cygwin</a>.<br />
Then, install the very nice tool <a href="https://github.com/cfg/apt-cyg">apt-cyg</a> which makes package management much easier in cygwin.<br />
Then to save yourself lots of agony of trying to work out which cygwin packages you need to install to be able to compile emacs, here is the list of all the packages I have installed. It may be a little bit of overkill but it will save you time. I obtained the list like this:</p>
<pre lang="bash">jason@jade ~
$ apt-cyg show | tr '\n' ' '</pre>
<p>Install them with:</p>
<pre lang="bash">$ apt-cyg install
_autorebase _update-info-dir alternatives autoconf autoconf2.1 \
 autoconf2.5 automake automake1.10 automake1.11 automake1.12 \
automake1.4 automake1.5 automake1.6 automake1.7 automake1.8 \
 automake1.9 base-cygwin base-files bash bash-completion bc binutils \
bzip2 ca-certificates cmake coreutils cpio crypt csih curl cvs cvsps \
cygrunsrv cygutils cygwin cygwin-doc dash dbus diffutils dos2unix \
editrights file findutils gamin gawk gcc-tools-epoch1-autoconf \
gcc-tools-epoch1-automake gcc-tools-epoch2-autoconf \
gcc-tools-epoch2-automake gcc4 gcc4-core gcc4-g++ gccmakedep gettext \
gettext-devel git git-completion git-gui git-svn gitk gitk grep groff \
gsettings-desktop-schemas gsettings-desktop-schemas gzip imake \
ipc-utils less libX11_6 libX11_6 libXau6 libXau6 libXdmcp6 libXdmcp6 \
libXext6 libXext6 libXft2 libXft2 libXrender1 libXrender1 libXss1 \
libXss1 libapr1 libapr1 libaprutil1 libaprutil1 libasn1_8 libattr1 \
libblkid1 libbz2_1 libcharset1 libcloog0 libcom_err-devel libcom_err2 \
libcurl-devel libcurl4 libdb4.5 libdb4.5-devel libdb4.5-devel libdb4.8 \
libdb4.8 libdbus1_3 libdbus1_3 libedit0 libedit0 libexpat1 libfam0 \
libfam0 libffi4 libfontconfig1 libfontconfig1 libfreetype6 \
libfreetype6 libgcc1 libgcrypt11 libgdbm4 libgettextpo0 libgettextpo0 \
libggi2 libggi2-display-terminfo libgii1 libgii1 libglib2.0_0 \
libglib2.0_0 libgmp3 libgmpxx4 libgnutls26 libgomp1 libgpg-error0 \
libgssapi3 libhdb9 libhdb9 libheimbase1 libheimntlm0 libhx509_5 \
libiconv libiconv libiconv2 libidn-devel libidn-devel libidn11 \
libintl8 libkadm5clnt7 libkadm5clnt7 libkadm5srv8 libkadm5srv8 \
libkafs0 libkafs0 libkdc2 libkdc2 libkrb5-devel libkrb5-devel \
libkrb5_26 liblzma5 liblzo2_2 libmetalink3 libmpc1 libmpfr1 libmpfr4 \
libncurses-devel libncurses10 libncurses7 libncurses8 libncurses8 \
libncurses9 libncurses9 libncursesw-devel libncursesw10 libneon27 \
libneon27 libopenldap2_3_0 libopenldap2_3_0 libopenldap2_4_2 \
libopenssl098 libopenssl100 libp11-kit0 libpcre0 libpcre1 libpcre1 \
libpopt0 libppl libpq-devel libpq-devel libpq5 libpq5 libproxy1 \
libproxy1 libreadline6 libreadline6 libreadline7 libroken18 libsasl2 \
libsasl2-devel libsasl2-devel libserf0_1 libserf0_1 libserf1_0 \
libserf1_0 libsigsegv2 libsl0 libsl0 libsqlite3_0 libssh2-devel \
libssh2-devel libssh2_1 libssp0 libstdc++6 libstdc++6-devel libtasn1_3 \
libuuid1 libuuid1 libwind0 libwrap0 libxcb1 libxcb1 libxml2 login m4 \
make makedepend makedepend man mintty nano ncurses ncurses-demo \
ncursesw ncursesw-demo openldap-devel openldap-devel openssh openssl \
openssl openssl-devel openssl-devel perl perl-Error \
perl-Locale-gettext perl_vendor python rebase run sed stgit subversion \
subversion subversion-perl subversion-perl tar tcl tcl tcl-tk tcl-tk \
termcap terminfo terminfo-extra terminfo0 terminfo0 terminfo0-extra \
texinfo tzcode unzip util-linux w32api w32api-headers w32api-runtime \
wget which xorg-cf-files xorg-cf-files xz zlib zlib-devel zlib-devel \
zlib0</pre>
<p>Go and have a cup of tea while its installing.</p>
<pre lang="bash">git clone git://git.savannah.gnu.org/emacs.git
cd emacs
./configure --with-w32 #  to ditch gtk and the concomitant gtk bug, thanks jlf
make</pre>
<p>If make is successful, test the build by running emacs from the src directory:</p>
<pre lang="bash">src/emacs -Q</pre>
<p>If that worked ok, you can:</p>
<pre lang="bash">make install</pre>
<h2>Setting up your home</h2>
<p>I like my cygwin home directory to be the same as windows %USERPROFILE% so I set the environment variable HOME=%USERPROFILE%.</p>
<h2>Set up a shortcut to launch emacs</h2>
<p>Make a shortcut to c:\cygwin\bin\run.exe on your desktop, and rename it to emacs.<br />
Edit the shortcut to:<br />
Target: <code>C:\cygwin\bin\run.exe /usr/local/bin/emacsclient "-c" "-a" "/usr/local/bin/emacs.exe"</code> #<br />
Start in: %USERPROFILE%<br />
The target part makes sure emacs launches a new window whether or not its already running. If it is already running and as a server, it will create a new frame connected to the server.<br />
The start in part makes sure the new instance&#8217;s <code>default-directory</code> is your home directory which I think makes most sense for when you are launching from a shortcut.<br />
Drop the shortcut onto your start menu. You should now be able to launch emacs from the start menu, or by pressing the Windows key and typing emacs.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/emacs/installing-emacs-in-cygwin/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">714</post-id>	</item>
		<item>
		<title>Edit a regex search string in Emacs</title>
		<link>https://emacstragic.net/uncategorized/edit-a-regex-search-string-in-emacs/</link>
					<comments>https://emacstragic.net/uncategorized/edit-a-regex-search-string-in-emacs/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 09 Jan 2013 13:13:11 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[search]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=624</guid>

					<description><![CDATA[If you are writing a complex regex search in emacs and need to edit the string, arrow keys takes you out of the search. M-e allows you to really edit the string.]]></description>
										<content:encoded><![CDATA[<p>If you are writing a complex regex search in emacs and need to edit the string, arrow keys takes you out of the search. M-e allows you to really edit the string.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/edit-a-regex-search-string-in-emacs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">624</post-id>	</item>
		<item>
		<title>Swap Registers in emacs calc</title>
		<link>https://emacstragic.net/uncategorized/swap-registers-in-emacs-calc/</link>
					<comments>https://emacstragic.net/uncategorized/swap-registers-in-emacs-calc/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Sun, 14 Oct 2012 23:14:56 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[calc]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=560</guid>

					<description><![CDATA[&#60;TAB&#62; to swap the contents of the last two registers in calc.]]></description>
										<content:encoded><![CDATA[<p><code>&lt;TAB&gt;</code> to swap the contents of the last two registers in calc.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/swap-registers-in-emacs-calc/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">560</post-id>	</item>
		<item>
		<title>Select what you typed rather than the completion in ido-mode</title>
		<link>https://emacstragic.net/uncategorized/select-what-you-typed-rather-than-the-completion-in-ido-mode/</link>
					<comments>https://emacstragic.net/uncategorized/select-what-you-typed-rather-than-the-completion-in-ido-mode/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 25 Sep 2012 00:18:13 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[ido]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=507</guid>

					<description><![CDATA[Sometimes you don&#8217;t want the completion that ido is offering me in Emacs, for instance when trying to create a temporary buffer C-x C-b sometempbuffername. C-j will to get ido to accept what you typed rather than the completion.]]></description>
										<content:encoded><![CDATA[<p>Sometimes you don&#8217;t want the completion that ido is offering me in Emacs, for instance when trying to create a temporary buffer <code>C-x C-b sometempbuffername</code>. <code>C-j</code> will to get ido to accept what you typed rather than the completion.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/select-what-you-typed-rather-than-the-completion-in-ido-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">507</post-id>	</item>
		<item>
		<title>Insert a new heading after numbered list in org-mode</title>
		<link>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/</link>
					<comments>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 04:59:57 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[org-mode]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=373</guid>

					<description><![CDATA[In org-mode in emacs, M-&#60;RET&#62; will add either a new heading or if your insertion point is between a list item and a heading, it will add a new list item. This is not always desirable. To add a new heading try C-U M-&#60;RET&#62;. I only discovered this as I got frustrated with org-mode insisting [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In org-mode in emacs, <code>M-&lt;RET&gt;</code> will add either a new heading or if your insertion point is between a list item and a heading, it will add a new list item. This is not always desirable. To add a new heading try <code>C-U M-&lt;RET&gt;</code>.<br />
I only discovered this as I got frustrated with org-mode insisting on adding an item to the list rather than creating a new heading. The emacs way around problems like this is to prefix the command with <code>C-U</code> to make it do something slightly different.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/insert-a-new-heading-after-numbered-list-in-org-mode/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">373</post-id>	</item>
		<item>
		<title>removing historical buffer names from the ido buffer list</title>
		<link>https://emacstragic.net/uncategorized/removing-historical-buffer-names-from-the-ido-buffer-list/</link>
					<comments>https://emacstragic.net/uncategorized/removing-historical-buffer-names-from-the-ido-buffer-list/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 04:49:45 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[ido]]></category>
		<category><![CDATA[keyboard shortcuts]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=235</guid>

					<description><![CDATA[ido-mode in emacs has this great feature where it remembers old buffers you have had open in the past and offers then as choices when switching buffer using C-x b. The problem is that sometimes it will have names in the list you&#8217;d rather it didn&#8217;t remember. The solution is easy, simply hit C-k to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://emacswiki.org/emacs/InteractivelyDoThings"><code>ido-mode</code></a> in emacs has this great feature where it remembers old buffers you have had open in the past and offers then as choices when switching buffer using <code>C-x b</code>. The problem is that sometimes it will have names in the list you&#8217;d rather it didn&#8217;t remember. The solution is easy, simply hit <code>C-k</code> to instantly kill the entry under point.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/removing-historical-buffer-names-from-the-ido-buffer-list/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">235</post-id>	</item>
		<item>
		<title>gnus, imap and gnutls in win32</title>
		<link>https://emacstragic.net/uncategorized/gnus-in-win32/</link>
					<comments>https://emacstragic.net/uncategorized/gnus-in-win32/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 01:11:23 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[gnus]]></category>
		<category><![CDATA[gnutls]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[win32]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=226</guid>

					<description><![CDATA[I&#8217;ve been trying to get gnus working in emacs in win32 for the past few days. There were a number of obstacles to overcome: Install gnutls The gnus README.w32 says gnutls should be installed and in the path. I found that it must be in the windows system path to make it work. Setting the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been trying to get gnus working in emacs in win32 for the past few days. There were a number of obstacles to overcome:</p>
<ol>
<li>Install <a href="http://sourceforge.net/projects/ezwinports/files/">gnutls</a>
</li>
<li>The gnus README.w32 says gnutls should be installed and in the path. I found that it must be in the windows system path to make it work. Setting the path within emacs was not good enough. So add <code>C:\Program Files (x86)\gnutls\bin;C:\Program Files (x86)\gnutls\lib</code> to your system path by going to <code>Start/Edit System Environment Variables</code> then click <code>Environment Variables</code> and edit Path in System Variables</li>
<li>you need to edit the emacs variable <code>gnutls-trustfiles</code> to point to windows paths to .crt files. by default it had paths to unix locations. The only way I could find to get these files was to install cygwin and then make <code>gnutls-trustfiles</code> equal to <code>("C:/cygwin/usr/ssl/certs/ca-bundle.trust.crt" "C:/cygwin/usr/ssl/certs/ca-bundle.crt")</code></li>
</ol>
<p>Unfortunately these last two steps were not obvious to me and it took me quite some time to work through them.<br />
Tip: if you need to debug gnutls, try setting <code>(setq gnutls-log-level 50)</code>.<br />
Now all I need to do is learn gnus!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/gnus-in-win32/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">226</post-id>	</item>
	</channel>
</rss>
