Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, April 8, 2013

How to open a new file in an already running emacs instance

I had been looking for this. I am jotting down probably the simplest way in case I forget in the future. First add this to your .emacs file

(server-start)

Add this alias to your ~/.bash_aliases

alias ecn='emacsclient --no-wait'

Now open a file in a running emacs instance like this.

ecn filename

Saturday, February 16, 2013

Quickly open current directory in nautilus from commandline

Say you are doing some work on commandline and you would like to open your current directory on nautilus to look around graphically. It can be quite useful sometimes. In this post I will tell you how. Add this line to the end of your .bash_aliases file.


alias n.='nautilus .'

Save it and run this command to update.


source ~/.bash_aliases

Now check if it works and let me know in the comments.