I have this linux box without root access with a quite old emacs, so I downloaded the latest version and built as follows:
- download to
$HOME/SRC - configure and build in
$HOME/BLDwith--prefix=$HOME makeandmake install
So this creates a bin folder in my home directory which is what I expected.
Now when I type emacs directly from terminal, it still opens the old one (as expected). So, I have to do ~/bin/emacs. I added this alias emacs=$HOME/bin/emacs to my .bash_profile which works. But I could have also added ~/bin to $PATH. However, not quite sure which one is recommended. And would the 2 versions of emacs work without any conflict e.g. both sharing and overwriting ~/.emacs each time a different version is opened.
Which is the best way to install new applications without root access where an older version is already present, and if the steps I followed are right.