Johnny [Life & Code]

Semper Exploro!

[EMACS : emacsclient -n] echo “alias ec=’emacsclient -n'” >> ~/.bashrc

with 7 comments

I use emacs shell extensively. so when i grep for some thing and i need to open the file, i have to visit the file (c-x c-f) eventhough  imy emacs shell is in the current directory. so

echo “alias ec=’emacsclient -n'” >> ~/.bashrc

m-x server-start (you can add this to ur .emacs)

m-x shell

blah@foo:~> ec test.test

emacs is kewl !!

Written by Johnny

December 27, 2006 at 5:02 am

Posted in Emacs, Linux Fun

7 Responses

Subscribe to comments with RSS.

  1. dude!write in english man!!


    December 28, 2006 at 6:33 am

  2. heehe … i shoud have put more explanation .. 😀

    i’m little sick today …

    so tommy how u doing buddy!!


    December 28, 2006 at 6:54 am

  3. doin work as of its mostly rading stuff..playing tt at work..fooling arnd..flirting..and chilling in the weekends….how was christmas..


    December 28, 2006 at 7:30 am

  4. good … just good .. the usual .. nothing fancy though …


    December 28, 2006 at 2:07 pm

  5. well that good. You mad need to close the buffer by ctrl X + # and not by ctlr X + k.. else it would give the file still has clients , do want to kill it?…


    January 10, 2007 at 1:52 pm

  6. What I usually do is that I map ‘find-file-at-point to Ctrl-o. When you do grep or ls etc. in emacs shell, you can navigate your cursor to the file listed (use incremental search), press Ctrl-o and the file opens.


    May 10, 2007 at 2:25 pm

  7. @stephen : thanks … nice.. very handy !!

    @kalyan : ?? ‘-n’ is no wait .. so it’ll open the file and quit.. so u can kill the buffer by the usual C-X k


    May 10, 2007 at 5:28 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: