<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Emacs on /usr</title><link>https://slashusr.anupamsg.me/categories/emacs/</link><description>Recent content in Emacs on /usr</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 09 Aug 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://slashusr.anupamsg.me/categories/emacs/index.xml" rel="self" type="application/rss+xml"/><item><title>Thank You, Bram Moolenaar.</title><link>https://slashusr.anupamsg.me/2023/08/09/thank-you-bram-moolenaar/</link><pubDate>Wed, 09 Aug 2023 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2023/08/09/thank-you-bram-moolenaar/</guid><description>&lt;p&gt;Bram Moolenaar is no longer with us. The creator of &lt;a href="https://www.vim.org/"&gt;Vim&lt;/a&gt; passed away last week at a relatively early age, leaving behind a rich legacy of the immensely popular modal text editor. He will be missed by millions of users and fans, who use it daily, and whose first interaction with any *nix system (at least on Linux and macOS) would have involved &lt;code&gt;vim&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;I had &lt;a href="https://slashusr.wordpress.com/2011/09/15/heretical-confessions-of-an-emacs-addict-joy-of-the-vim-text-editor/"&gt;written&lt;/a&gt; about my Vim experience a few years back. Since then, my toolkit has always included Vim (or rather, &lt;a href="https://macvim.org/"&gt;MacVim&lt;/a&gt;). While Emacs remains my primary tool, Vim has a geeky elegance, and its hyper-focus on editing performance is hugely attractive. Also, while Emacs is sometimes (&lt;em&gt;and rightfully&lt;/em&gt;) called a kitchen sink, Vim &lt;em&gt;is equally so&lt;/em&gt;, at least as the “can do everything” text editor. And it &lt;em&gt;is&lt;/em&gt; the standard text editor, after all[1].&lt;/p&gt;</description></item><item><title>The Other Emacsen</title><link>https://slashusr.anupamsg.me/2014/11/30/the-other-emacsen/</link><pubDate>Sun, 30 Nov 2014 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2014/11/30/the-other-emacsen/</guid><description>&lt;p&gt;While Emacs remains my primary text editor, there are times when starting a full Emacs session with tons of packages is simply too slow, especially on a terminal window, and when the task at hand is simply to make a few lines of changes in a configuration file.&lt;/p&gt;
&lt;p&gt;Yes, I &lt;strong&gt;do&lt;/strong&gt; know about the handy &lt;code&gt;-q&lt;/code&gt; command-line option, which prevents the &lt;code&gt;init.el&lt;/code&gt; file from being loaded, thereby ensuring a sub-second initialization of Emacs, &lt;em&gt;or&lt;/em&gt; the &lt;code&gt;emacsclient&lt;/code&gt; route (which I have enabled, and do use), but sometimes it is just more convenient to have a fast editor that &lt;em&gt;has the Emacs feel, without the bloat&lt;/em&gt;. And for a text nerd such as myself, it is also a matter of curiosity to &lt;a href="http://blog.anupamsg.me/2011/09/15/heretical-confessions-of-an-emacs-addict-joy-of-the-vim-text-editor/" title="Vim"&gt;try out other editors&lt;/a&gt; once in a while.&lt;/p&gt;</description></item><item><title>What's New in Emacs 24.4</title><link>https://slashusr.anupamsg.me/2013/12/30/whats-new-in-emacs-24-4-2/</link><pubDate>Mon, 30 Dec 2013 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2013/12/30/whats-new-in-emacs-24-4-2/</guid><description>&lt;p&gt;&lt;a href="http://www.masteringemacs.org/about/"&gt;Mickey Petersen&lt;/a&gt; has written up an excellent round-up of the latest features of the &lt;a href="http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00500.html"&gt;Emacs 24.4&lt;/a&gt; release.&lt;/p&gt;
&lt;p&gt;Read the whole article at &lt;a href="http://www.masteringemacs.org/articles/2013/12/29/whats-new-in-emacs-24-4/"&gt;http://www.masteringemacs.org/articles/2013/12/29/whats-new-in-emacs-24-4/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;He had also written a similar article for Emacs 24.3 (current stable version), which can be found &lt;a href="http://www.masteringemacs.org/articles/2013/12/29/whats-new-emacs-24-3/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="new-settings-that-i-am-using"&gt;New Settings that I am using&lt;/h2&gt;
&lt;p&gt;I have already setup the &lt;code&gt;load-prefer-newer&lt;/code&gt;, &lt;code&gt;cycle-spacing&lt;/code&gt;, and &lt;code&gt;ns-use-srgb-colorspace&lt;/code&gt; options.&lt;/p&gt;
&lt;p&gt;The new &lt;code&gt;electric-pair-mode&lt;/code&gt; options also look interesting, and I have set these up (I was using &lt;code&gt;skeleton-pair&lt;/code&gt; for the auto-pairing function till now).&lt;/p&gt;</description></item><item><title>Copying the previous line to current position in Emacs</title><link>https://slashusr.anupamsg.me/2013/06/30/copying-the-previous-line-to-current-position-in-emacs/</link><pubDate>Sun, 30 Jun 2013 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2013/06/30/copying-the-previous-line-to-current-position-in-emacs/</guid><description>&lt;p&gt;Recently, I came across a scenario where I had to quickly copy the previous line in an Emacs buffer to the current position. The usual method for doing this has been to invoke:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;C-p C-a C-k C-y RET C-y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Which basically does the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Moves&lt;/em&gt; to the previous line (&lt;code&gt;C-p&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Moves&lt;/em&gt; to the beginning of the previous line (&lt;code&gt;C-a&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Kills&lt;/em&gt; the line (i.e., cuts the line with &lt;code&gt;C-k&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Yanks&lt;/em&gt; the line back (i.e., restores the original line with &lt;code&gt;C-y&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Creates&lt;/em&gt; a newline (&lt;code&gt;RET&lt;/code&gt;), and&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Yanks&lt;/em&gt; another copy of the line with the final &lt;code&gt;C-y&lt;/code&gt; (which is what we wanted in the first place)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;While this &lt;em&gt;works&lt;/em&gt;, it is certainly not the most optimal mechanism to perform such a simple (albeit infrequent) operation.&lt;/p&gt;</description></item><item><title>Heretical Confessions of an Emacs Addict - Joy of the Vim Text Editor</title><link>https://slashusr.anupamsg.me/2011/09/15/heretical-confessions-of-an-emacs-addict-joy-of-the-vim-text-editor/</link><pubDate>Thu, 15 Sep 2011 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2011/09/15/heretical-confessions-of-an-emacs-addict-joy-of-the-vim-text-editor/</guid><description>&lt;h2 id="context"&gt;Context&lt;/h2&gt;
&lt;p&gt;As an experiment, I have recently started using &lt;a href="http://www.vim.org/"&gt;Vim&lt;/a&gt; as my primary text editor. While I have been an &lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt; aficionado for a very, very long time - clocking in at almost 16 years - Vim is something that I have always been curious about, and tinkered with from time to time, while ending up going back to Emacs. This time however, I intend to stick around for a while, and try to get a feel of the Zen of Vim.&lt;/p&gt;</description></item><item><title>Three nifty alternatives to the M-TAB key in Emacs, and a replacement.</title><link>https://slashusr.anupamsg.me/2010/09/29/three-nifty-alternatives-to-the-m-tab-key-in-emacs-and-a-replacement/</link><pubDate>Wed, 29 Sep 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/09/29/three-nifty-alternatives-to-the-m-tab-key-in-emacs-and-a-replacement/</guid><description>&lt;p&gt;&lt;strong&gt;The M-&lt;code&gt;&amp;lt;TAB&amp;gt;&lt;/code&gt;&lt;/strong&gt; key in Emacs provides a useful completion function (`&lt;em&gt;completion-at-point&lt;/em&gt;’), which tries to complete the current symbol at point to something useful, usually based on other symbols in the buffer which have the current partial symbol as a prefix.&lt;/p&gt;
&lt;p&gt;However, using this key is a pain in most OS GUI systems, since it is usually mapped to the Task Switching function as well. Note that the &lt;strong&gt;&lt;code&gt;&amp;lt;Alt&amp;gt;&lt;/code&gt;&lt;/strong&gt; key doubles as &lt;strong&gt;&lt;code&gt;&amp;lt;Meta&amp;gt;&lt;/code&gt;&lt;/strong&gt; on most keyboards.&lt;/p&gt;</description></item><item><title>Emacs 23.2 has been released.</title><link>https://slashusr.anupamsg.me/2010/05/09/emacs-23-2-has-been-released/</link><pubDate>Sun, 09 May 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/05/09/emacs-23-2-has-been-released/</guid><description>&lt;p&gt;Emacs &lt;a href="http://permalink.gmane.org/gmane.emacs.announce/17"&gt;23.2&lt;/a&gt; has been released.&lt;/p&gt;
&lt;p&gt;The source downloads are available at: &lt;a href="ftp.gnu.org/gnu/emacs/"&gt;ftp.gnu.org/gnu/emacs/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For those who prefer access to the VCS, the read-only bzr URL is:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bzr.savannah.gnu.org/r/emacs/emacs-23/"&gt;http://bzr.savannah.gnu.org/r/emacs/emacs-23&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;</description></item><item><title>Converting from TaskPaper to Emacs Org-Mode</title><link>https://slashusr.anupamsg.me/2010/03/30/converting-from-taskpaper-to-emacs-org-mode/</link><pubDate>Tue, 30 Mar 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/03/30/converting-from-taskpaper-to-emacs-org-mode/</guid><description>&lt;p&gt;&lt;strong&gt;Why TaskPaper and Org-Mode?&lt;/strong&gt;&lt;a href="http://www.hogbaysoftware.com/products/taskpaper"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.hogbaysoftware.com/products/taskpaper"&gt;TaskPaper&lt;/a&gt; is a simple and elegant task management software for the OSX platform. It combines the simplicity of a text micro-format to mark the tasks, and the elegance of a Mac UI. It also provides a quick launch time and a nice system-wide quick entry window that is accessible with a single shortcut key.&lt;/p&gt;
&lt;p&gt;&lt;img alt="tasks.png" loading="lazy" src="https://slashusr.anupamsg.me/2010/03/30/converting-from-taskpaper-to-emacs-org-mode/images/tasks.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="taskpapercapturewindow.png" loading="lazy" src="https://slashusr.anupamsg.me/2010/03/30/converting-from-taskpaper-to-emacs-org-mode/images/taskpapercapturewindow.png"&gt;&lt;/p&gt;
&lt;p&gt;I have been a heavy user of Emacs’ &lt;a href="http://orgmode.org/"&gt;Org-Mode&lt;/a&gt; for some years now, and love the power and flexibility it offers for tracking not just outlines and tasks, but any text based item, including notes and calendar entries. In fact Org-Mode has become one of the primary software that I use regularly, every day.&lt;/p&gt;</description></item><item><title>Emacs function to add new path elements to the $PATH environment variable</title><link>https://slashusr.anupamsg.me/2010/01/20/emacs-function-to-add-new-path-elements-to-the-path-environment-variable/</link><pubDate>Wed, 20 Jan 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/01/20/emacs-function-to-add-new-path-elements-to-the-path-environment-variable/</guid><description>&lt;p&gt;A very simple eLisp function to add new path elements to the PATH environment variable. Very useful for adding new &lt;strong&gt;comint&lt;/strong&gt; executables from within &lt;strong&gt;.emacs/init.el&lt;/strong&gt; files.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(defun my-add-path (path-element)
&amp;#34;Add the specified path element to the Emacs PATH&amp;#34;
(interactive &amp;#34;DEnter directory to be added to path: &amp;#34;)
(if (file-directory-p path-element)
(setenv &amp;#34;PATH&amp;#34;
(concat (expand-file-name path-element)
path-separator (getenv &amp;#34;PATH&amp;#34;)))))
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Google Search from within Emacs</title><link>https://slashusr.anupamsg.me/2010/01/19/google-search-from-within-emacs/</link><pubDate>Tue, 19 Jan 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/01/19/google-search-from-within-emacs/</guid><description>&lt;p&gt;A quick and dirty eLisp function for searching on the internet from within Emacs. The default is to search using Google, but you can add to the &lt;strong&gt;*internet-search-urls*&lt;/strong&gt; variable to setup additional search URLs.&lt;/p&gt;
&lt;p&gt;By default, the search term is appended at end of the URL - however, you can also encode the specific search term insertion point in the URL by marking the position using the &lt;strong&gt;“%s”&lt;/strong&gt; marker.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;;;; The custom search URLs
(defvar *internet-search-urls*
(quote (&amp;#34;http://www.google.com/search?ie=utf-8&amp;amp;oe=utf-8&amp;amp;q=%s&amp;#34;
&amp;#34;http://en.wikipedia.org/wiki/Special:Search?search=&amp;#34;)))
;;; Search a query on the Internet using the selected URL.
(defun search-in-internet (arg)
&amp;#34;Searches the internet using the ARGth custom URL for the marked text.
If a region is not selected, prompts for the string to search on.
The prefix number ARG indicates the Search URL to use. By default the search URL at position 1 will be used.&amp;#34;
(interactive &amp;#34;p&amp;#34;)
;; Some sanity check.
(if (&amp;gt; arg (length *internet-search-urls*))
(error &amp;#34;There is no search URL defined at position %s&amp;#34; arg))
(let ((query                          ; Set the search query first.
(if (region-active-p)
(buffer-substring (region-beginning) (region-end))
(read-from-minibuffer &amp;#34;Search for: &amp;#34;)))
;; Now get the Base URL to use for the search
(baseurl (nth (1- arg) *internet-search-urls*)))
;; Add the query parameter
(let ((url
(if (string-match &amp;#34;%s&amp;#34; baseurl)
;; If the base URL has a %s embedded, then replace it
(replace-match query t t baseurl)
;; Else just append the query string at end of the URL
(concat baseurl query))))
(message &amp;#34;Searching for %s at %s&amp;#34; query url)
;; Now browse the URL
(browse-url url))))
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Quickly diff the changes made in the current buffer with its file</title><link>https://slashusr.anupamsg.me/2010/01/19/quickly-diff-the-changes-made-in-the-current-buffer-with-its-file/</link><pubDate>Tue, 19 Jan 2010 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2010/01/19/quickly-diff-the-changes-made-in-the-current-buffer-with-its-file/</guid><description>&lt;p&gt;&lt;em&gt;Update (23rd Jan 2010): Separated the key-assignment and  function definition.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;A simple function to quickly do a diff of the current buffer contents with its underlying file. Very useful if the file has been changed outside (e.g., a log file).&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;;; Diff the current buffer with the file contents
(defun my-diff-current-buffer-with-disk ()
 &amp;#34;Compare the current buffer with it&amp;#39;s disk file.&amp;#34;
(interactive)
 (diff-buffer-with-file (current-buffer)))
(global-set-key (kbd &amp;#34;C-c w&amp;#34;) &amp;#39;my-diff-current-buffer-with-disk)
&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Importing contacts from OSX Addressbook to Emacs BBDB</title><link>https://slashusr.anupamsg.me/2009/08/16/importing-contacts-from-osx-addressbook-to-emacs-bbdb/</link><pubDate>Sun, 16 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/16/importing-contacts-from-osx-addressbook-to-emacs-bbdb/</guid><description>&lt;p&gt;A major aspect of using &lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; is that it is more than a text editor - it is more of an application platform - some would call it an &lt;em&gt;Operating System&lt;/em&gt; - that allows a host of applications to run within the same context and session - and vastly enrich the user experience. This is in fact a primary reason why many Emacs users spend their entire computer interaction via Emacs.&lt;/p&gt;</description></item><item><title>Tips for using emacsclient using Emacs 23.1 daemon mode</title><link>https://slashusr.anupamsg.me/2009/08/12/tips-for-using-emacsclient-using-emacs-23-1-daemon-mode/</link><pubDate>Wed, 12 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/12/tips-for-using-emacsclient-using-emacs-23-1-daemon-mode/</guid><description>&lt;p&gt;In an &lt;a href="http://slashusr.wordpress.com/2009/08/11/tips-for-using-emacsclient-on-osx/"&gt;earlier post&lt;/a&gt; I had listed the server-mode mechanism to allow client/server editing using Emacs. However, this require some setup and also an active Emacs session.&lt;/p&gt;
&lt;p&gt;With the latest version of &lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; (23.1), a new mechanism to invoke Emacs in a server mode has been introduced. Basically, emacs can be invoked with the &amp;ndash;daemon option from the shell command line:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ emacs --daemon
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will run emacs in the background as a daemon which will be listening in to emacsclient connections. To actually start a edit session, use emacsclient from the command line as before with the file name as a parameter.&lt;/p&gt;</description></item><item><title>Tips for using emacsclient and server-mode on OSX</title><link>https://slashusr.anupamsg.me/2009/08/11/tips-for-using-emacsclient-on-osx/</link><pubDate>Tue, 11 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/11/tips-for-using-emacsclient-on-osx/</guid><description>&lt;p&gt;&lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; is a great editor, but has one setback - it is slow to startup if you have loads of packages to load. On my G4 iBook, it takes around 45 seconds before Emacs becomes usable (OK - I use lots of packages).&lt;/p&gt;
&lt;p&gt;However, Emacs is not meant to be restarted every so often. The canonical usage is to start Emacs once, invoke the server mode (see &lt;a href="http://www.emacswiki.org/emacs/EmacsClient"&gt;EmacsClient&lt;/a&gt;) and then use the &lt;a href="http://www.manpagez.com/man/1/emacsclient/"&gt;emacsclient&lt;/a&gt; from the command line to invoke the editor instance when needed. I.e., the classic client/server model for editing!&lt;/p&gt;</description></item><item><title>Setting the PATH variable from within Emacs</title><link>https://slashusr.anupamsg.me/2009/08/10/setting-the-path-variable-from-within-emacs/</link><pubDate>Mon, 10 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/10/setting-the-path-variable-from-within-emacs/</guid><description>&lt;p&gt;A Small function to set the PATH variable from within Emacs. You can define the function and the path definitions in your .emacs file:&lt;/p&gt;
&lt;p&gt;Very useful for OS X, where the default path is set by plists.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;;; Define a function to setup additional path
(defun my-add-path (path-element)
&amp;#34;Add the specified path element to the Emacs PATH&amp;#34;
(interactive &amp;#34;DEnter directory to be added to path: &amp;#34;)
(if (file-directory-p path-element)
(setenv &amp;#34;PATH&amp;#34;
(concat (expand-file-name path-element)
path-separator
(getenv &amp;#34;PATH&amp;#34;)))))
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and use it as:&lt;/p&gt;</description></item><item><title>Emulate a three button Mouse in Emacs on a single button Mac trackpad/mouse</title><link>https://slashusr.anupamsg.me/2009/08/09/emulate-a-three-button-mouse-in-emacs-on-a-single-button-mac-trackpadmouse/</link><pubDate>Sun, 09 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/09/emulate-a-three-button-mouse-in-emacs-on-a-single-button-mac-trackpadmouse/</guid><description>&lt;p&gt;Traditionally, mice on Macs have had just one button (including the iBook/Powerbook trackpads) - even through Mac OS (including OS X) can accept 2 or 3 button input without any problems.&lt;/p&gt;
&lt;p&gt;Emacs on the other hand maps quite a few functions to the second and third chords of the mice. If you want to emulate a three button mouse in Emacs on OS X, a simple customization option will do the trick.&lt;/p&gt;</description></item><item><title>Using M-` from switching Emacs Frames on OSX</title><link>https://slashusr.anupamsg.me/2009/08/09/using-m-from-switching-emacs-frames-on-osx/</link><pubDate>Sun, 09 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/09/using-m-from-switching-emacs-frames-on-osx/</guid><description>&lt;p&gt;The standard &lt;a href="http://www.gnu.org/software/emacs"&gt;Emacs&lt;/a&gt; key-binding for moving to the other frame (‘other-frame’) is C-x 5 o. That’s quite a few key-strokes, and also does not match with the standard OS X key-mapping for switching windows, which is Command-`. On OS X, the Command key maps to Meta in Emacs.&lt;/p&gt;
&lt;p&gt;However, this is easy to fix. Put the following code-fragment into your .emacs file:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(define-key icicle-mode-map [?\M-`] nil) # Only needed if you use Icicles
(global-set-key [?\M-`] &amp;#39;other-frame) # This sets the key binding
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note that by default M-` invokes ‘tmm-menubar’ which can also be accessed via [F10]. Also, you do not need the first line (to undefine the key binding in &lt;a href="http://www.emacswiki.org/emacs/Icicles"&gt;Icicles&lt;/a&gt;) if you do not use that package.&lt;/p&gt;</description></item><item><title>Use the Capslock as a Control key on OSX for Emacs</title><link>https://slashusr.anupamsg.me/2009/08/08/use-the-capslock-as-a-control-key/</link><pubDate>Sat, 08 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/08/use-the-capslock-as-a-control-key/</guid><description>&lt;p&gt;This is an absolute must, unless you like contorting your fingers and risk RSI. It is also an easy thing to do on OS X.&lt;/p&gt;
&lt;p&gt;You need to bring up the System preferences → Keyboard &amp;amp; Mouse&lt;/p&gt;
&lt;p&gt;and then click the “Modifier Keys” to remap the Capslock to Control.&lt;/p&gt;
&lt;p&gt;&lt;img alt="snapzproxscreensnapz001.png" loading="lazy" src="images/snapzproxscreensnapz001.png"&gt;&lt;/p&gt;
&lt;p&gt;This is available on OS X 10.4 and later versions.&lt;/p&gt;</description></item><item><title>Using OSX Spotlight from within Emacs</title><link>https://slashusr.anupamsg.me/2009/08/08/using-osx-spotlight-from-within-emacs/</link><pubDate>Sat, 08 Aug 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/08/08/using-osx-spotlight-from-within-emacs/</guid><description>&lt;p&gt;&lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt; comes with a ‘locate’ command that uses the &lt;a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?locate+1"&gt;locate&lt;/a&gt; system command to find files within your system.&lt;/p&gt;
&lt;p&gt;On OS X, it is easier to use &lt;a href="http://www.apple.com/sg/macosx/features/spotlight/"&gt;Spotlight&lt;/a&gt;, which is trivial to enable in Emacs.&lt;/p&gt;
&lt;p&gt;In your .emacs file, add the following code:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;(setq locate-command &amp;#34;mdfind&amp;#34;)
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;Now try: 
M-x locate &amp;lt;enter your search here&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Your search results will be displayed in a new Window.&lt;/p&gt;</description></item><item><title>Emacs 23 is finally released!</title><link>https://slashusr.anupamsg.me/2009/07/31/emacs-23-is-finally-released/</link><pubDate>Fri, 31 Jul 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/07/31/emacs-23-is-finally-released/</guid><description>&lt;p&gt;Hurray! The latest version of the &lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt; Operating system &amp;hellip; erm text editor has been &lt;a href="http://lists.gnu.org/archive/html/info-gnu-emacs/2009-07/msg00000.html"&gt;released&lt;/a&gt; today. The new version is at 23.1 and has a lot of &lt;a href="http://www.gnu.org/software/emacs/NEWS.23.1"&gt;goodies&lt;/a&gt; packed. The three features I am looking forward to the most are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Native transparency&lt;/li&gt;
&lt;li&gt;Easy sizing of the font display via C-x C-+ and C-x C&amp;ndash;&lt;/li&gt;
&lt;li&gt;Full unicode support!!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The third one is going to be most useful in the long run - with an easy ability to use the editor for texts in my native language and script. MULE was a workable option - but clunky compared to the solution in this release.&lt;/p&gt;</description></item><item><title>Some useful Emacs Links</title><link>https://slashusr.anupamsg.me/2009/03/21/some-useful-emacs-links/</link><pubDate>Sat, 21 Mar 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/03/21/some-useful-emacs-links/</guid><description>&lt;p&gt;Found an interesting &lt;a href="http://www.emacsblog.org/"&gt;Emacs blog&lt;/a&gt; with lots of tips and tricks, and  is run by &lt;a href="http://www.emacsblog.org/about/"&gt;Ryan McGeary&lt;/a&gt;. The entry for running Emacs on OS X is useful. Ryan recommends the &lt;a href="http://homepage.mac.com/zenitani/emacs-e.html"&gt;Carbon&lt;/a&gt;  &lt;a href="http://homepage.mac.com/zenitani/emacs-e.html"&gt;Emacs&lt;/a&gt; package, which is a pre-packaged version of the &lt;a href="http://www.gnu.org/software/emacs/"&gt;GNU Emacs&lt;/a&gt; version  22, and contains a ton of extra packages not available in the CVS Version. I personally use the latest &lt;a href="http://www.gnu.org/software/emacs/"&gt;Gnu Emacs&lt;/a&gt; Version 22 from the CVS repository, and compile  the application manually (well, via a cron job actually) every month or so, to keep up with the  latest developer changes being made in the code-repository itself (which - BTW - can be tracked via  the &lt;a href="http://dir.gmane.org/gmane.emacs.devel"&gt;Emacs devel newsgroup&lt;/a&gt;), and prefer to manually setup the packages I need. Apart from the literally thousands of site on the net dealing with Emacs, one  wiki Site I can whole-heartily recommend is the Emacs Wiki:  &lt;a href="http://emacswiki.org/"&gt;http://emacswiki.org/&lt;/a&gt;, a fantastic resource on Emacs of all  varieties, and catering users from newbies through über-geeks.&lt;/p&gt;</description></item><item><title>Using Emacs and Markdown for Wordpress posting</title><link>https://slashusr.anupamsg.me/2009/03/21/using-emacs-and-markdown-for-wordpress-posting/</link><pubDate>Sat, 21 Mar 2009 00:00:00 +0000</pubDate><guid>https://slashusr.anupamsg.me/2009/03/21/using-emacs-and-markdown-for-wordpress-posting/</guid><description>&lt;p&gt;While setting up this site (which is based on &lt;a href="http://wordpress.org/"&gt;Wordpress&lt;/a&gt;), I was evaluating  a few offline blog editors, and came upon &lt;a href="http://ranchero.com/marsedit/"&gt;MarsEdit&lt;/a&gt; and &lt;a href="http://infinite-sushi.com/software/ecto/"&gt;Ecto&lt;/a&gt; - both of which seem to be well-accepted commercial blog editors in the Mac  world. Both allow easy setup of the blog configurations, have a hassle-free  configuration, and allow a mail-inbox like access to previous posts. My needs for the offline blogging tool are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Support Wordpress (obviously)&lt;/li&gt;
&lt;li&gt;Support formatting in &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; (the default Wordpress formatting         is atrocious). &lt;em&gt;Note that you will need to enable Markdown syntax on your blog by using any         of the &lt;a href="http://www.semiologic.com/projects/markdown-fix/"&gt;plugins&lt;/a&gt; available for Wordpress.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Provide easy access to prior posts&lt;/li&gt;
&lt;li&gt;Have a decent &lt;a href="http://en.wikipedia.org/wiki/Text_editor"&gt;text editor&lt;/a&gt; built-in&lt;/li&gt;
&lt;li&gt;Provide at least a subset of my current editing muscle-memory&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;However, I happen to be a &lt;a href="http://www.gnu.org/software/emacs/"&gt;Emacs&lt;/a&gt; fanatic, and perform majority of my day-to-day computing tasks in that tool (another post on this later). So I googled around a bit for the current state of blogging using Emacs, and voila! &lt;a href="http://www.emacswiki.org/cgi-bin/wiki"&gt;EmacsWiki&lt;/a&gt; pointed to the &lt;a href="http://www.emacswiki.org/cgi-bin/wiki/WebloggerMode"&gt;weblogger mode&lt;/a&gt;, which supports Wordpress, and also handles Markdown formatting easily with the &lt;a href="http://savannah.nongnu.org/projects/emacsweblogs"&gt;markdown mode&lt;/a&gt;. And to top it off, the code is open-source, which means that I can tinker and change the functionality when needed.&lt;/p&gt;</description></item></channel></rss>