ArunRocks

Representing Anti-Monotonistic Tendencies
  • rss
  • Home
  • A little intro to Thrissur
  • Archives
    • Search
  • Resumé
  • About Me
    • Comment policy

Emacs Tip: A Key to open the Current Folder in Windows

Arun bhai | Tue, Jun 10, 2008

If the over-descriptive title was not enough, this is another one of my tips to use my favorite editor - Emacs. Some of you really liked my earlier post on Emacs tips on Windows, so here is one more tip to improve your productivity.

Most of the time while editing a document, we need to quickly browse the folder of that file. Add the following lines to your .emacs files and so that by just pressing function key F12 you can immediately view its corresponding folder:


A nice extra is that the opened explorer will have the current file automatically selected. Press F12 once in a while, it quickly becomes addictive ;)

Bookmark this to del.icio.us | Digg | Furl | Netscape | Google Bookmarks | Technorati | reddit |

You may also like to read...

  • 5 Indispensable Tips for Emacs on Windows
  • Is Python Intellisense Possible in Emacs?
  • Happy Organised 2008
  • Better Fonts Tip: Biggest Improvement in Ubuntu Appearance
Categories
General, Technical, emacs
Comments rss
Comments rss
Trackback
Trackback

« Indie Film Making against Odds DASAVATHAARAM - A Futile Head Spinning Exercise »

4 responses

You can find some more of this kind in Emacs+EmacsW32.

Lennart | Fri, Jul 18, 2008

You can find some more of this kind in Emacs+EmacsW32.

This is extremely useful for me. Unfortunately I can't get

numericalexample.com | Wed, Jul 23, 2008

This is extremely useful for me. Unfortunately I can’t get it working. The error message is: “convert-standard-filename: Wrong type argument: stringp, nil” (in the Messages buffer).

By the way I rather would like explorer to open the current directory (belonging to the current buffer) than the current file.

If I evaluate the following in the Scratch buffer: (setq fname-temp (convert-standard-filename “f:/numericalexamplecom/.emacs”)) then the value of fname-temp becomes “f:/numericalexamplecom/.emacs” so convert-standard-filename does not convert forward slashes into backward slashes either.

@numericalexample.com: I am not able to reproduce this problem. Can you

Arun bhai | Wed, Jul 23, 2008

@numericalexample.com:

I am not able to reproduce this problem. Can you have a look at your w32-shell-dos-semantics ? Maybe it will solve your issue.

This function returned 'nil'. So I added the following to

numericalexample.com | Fri, Jul 25, 2008

This function returned ‘nil’. So I added the following to my emacs file: (defun w32-shell-dos-semantics() t) Now it does exactly what I want when I execute the explorer command from an emacs buffer containing a file.

The error I got before seems to occur only when I execute the explorer command from a Dired buffer or from a cygwin shell.

Another way of quickly browsing a folder when editing an emacs buffer is just pressing “ctrl-x ctrl-f return”. But this does not help us when we want to open a file that can not be opened in emacs such as a pdf.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Your Email:

Categories

  • emacs
  • General
  • greasemonkey
  • indie
  • launchy
  • Pocketmod
  • productivity
  • py2exe
  • Reviews
    • Books
    • Movies
  • Short Stories
  • Technical
    • Gaming
      • Unni
    • Python
    • WordPress

Recent Posts

  • Ledger’s Joker Chills, Thrills and Entralls
  • Reading Hindu Online Made Better with Greasemonkey
  • Better Fonts Tip: Biggest Improvement in Ubuntu Appearance
  • Best Dialogs of Salim Kumar
  • Learning Pylons Through Tutorials

Recent Comments

  • Arun bhai on Best Dialogs of Salim Kumar
  • Thomas on Best Dialogs of Salim Kumar
  • Nidhish on Best Dialogs of Salim Kumar
  • abhilash on Learning Pylons Through Tutorials
  • Bookmarks about Ubuntu on Better Fonts Tip: Biggest Improvement in Ubuntu Appearance

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Bookmarks

del.icio.us/arun_ravindran I am arun_ravindran on del.icio.us
add arun_ravindran to your network Add me to your network
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox