help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resources for an old newbie ?


From: Emanuel Berg
Subject: Re: Resources for an old newbie ?
Date: Wed, 31 May 2023 01:24:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Here are the minimal (?) commands required to install the
latest Emacs on Debian.

I removed the shell functions in this version, if that is what
made it so scary last time. (But actually I recommend using
functions: less error prone, faster and more reliable.)

Anyway, as you now see below beyond doubt, it is
a trivial affair.

Installing Emacs is step 1-3 and 5, that is 12 commands.
Upgrading it after that, step 4 and 5, is only 7 commands.
All of them well familiar to most Joe Unix Hacker on
the globe.

If one can do it better or shorter, do say! And when we are
done, we could mail the EmacsWiki maintainers and ask them to
publish the list of commands, if they lack such a page.

# 1. setup directories
src_dir=~/src
emacs_dir=${src_dir}/emacs
mkdir -p $emacs_dir

# 2. get dependencies
sudo apt-get -qq update
sudo apt-get install build-essential debian-goodies libgccjit-10-dev
sudo apt-get build-dep emacs

# 3. get source
cd $src_dir
git clone https://git.savannah.gnu.org/git/emacs.git

# 4. refresh source/upgrade
cd $emacs_dir
git fetch
git merge

# 5. compile and install
autogen.sh
configure --with-x-toolkit=no --with-native-compilation
make
sudo make install

https://dataswamp.org/~incal/conf/.zsh/install-emacs
(with functions, recommended)

https://dataswamp.org/~incal/scripts/emacs-install-minimal
(as a script)

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]