I am new to installing application from source and just learning the best practices to do so.
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
- configure and build in
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
$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.