LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2009, 06:54 PM   #1
pamparana
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
launching emacs-snapshot with the emacs command


Hello,

I am using ubuntu 9.04 and just installed the emacs-snapshot package alongside my emacs package. Everything works fine but how can I make sure that when I issue the emacs command in the terminal, it launches the emacs-snapshot instead of the regular emacs?

Thanks,
Luca

Last edited by pamparana; 07-20-2009 at 06:55 PM.
 
Old 07-21-2009, 02:05 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hello pamparana,

I don't use emacs, I use vi ( sort of, and please don't start a vi / emacs arguement )
This'll give you the idea:

Code:
tgar@vaio:~$ which vi
/usr/bin/vi
tgar@vaio:~$ ls -l /usr/bin/vi
lrwxrwxrwx 1 root root 20 2008-06-07 16:41 /usr/bin/vi -> /etc/alternatives/vi
tgar@vaio:~$ ls -l /etc/alternatives/vi
lrwxrwxrwx 1 root root 17 2009-01-27 09:42 /etc/alternatives/vi -> /usr/bin/vim.tiny
tgar@vaio:~$ ls -l /usr/bin/vim.tiny
-rwxr-xr-x 1 root root 593412 2009-01-08 02:26 /usr/bin/vim.tiny
tgar@vaio:~$ file /usr/bin/vim.tiny
/usr/bin/vim.tiny: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
tgar@vaio:~$
So you can see that when I execute vi file when all those links have been followed the real command is /usr/bin/vim.tiny file

So you need to make a symlink with the ln command:

ln -sT target linkname

I suggest you backup your emacs and emacs-snapshot before you start playing with ln but I'm sure you will get it to link as you like.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Emacs editing, Pt.5: Shape your Emacs view LXer Syndicated Linux News 0 08-09-2007 08:46 AM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 03:41 AM
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 03:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 09:36 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 08:31 AM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration