From 1a1a42f4ec04e7ccc3c6ce488a951212bc97ff64 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Tue, 7 Jan 2025 08:26:38 +0700 Subject: [PATCH] Update README.md --- README.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2ff680f..4d98126 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,37 @@ -Usage: +# Emacs installation + +On Debian, use apt package manager to complete a dependencies: ```bash -rm -r ~/.emacs.d && rm ~/.emacs && git clone https://gitea.ditaajipratama.net/aji/emacs.d.git ~/.emacs.d +sudo apt-get update + +# For installing. Need a texinfo for this dependencies: makeinfo >= 4.13 +sudo apt-get install git autoconf texinfo +# X development libraries and GTK+ +sudo apt-get install libx11-dev libxpm-dev libxft-dev libxext-dev libxt-dev +# GTK+ and image libraries +sudo apt-get install libgtk-3-dev libtiff-dev libgif-dev libjpeg-dev libpng-dev libxpm-dev +# Additional Optional Packages +sudo apt-get install libncurses-dev libgnutls28-dev libxml2-dev +# Clipboard integration for terminal +sudo apt-get install xclip ``` -Be careful, it will remove your old `.emacs.d` directory and `.emacs` file. \ No newline at end of file +Then install Emacs from source (git): + +```bash +git clone https://git.savannah.gnu.org/git/emacs.git +cd emacs +make +sudo make install +``` + +Use the configuration: + +```bash +rm -r ~/.emacs.d +rm ~/.emacs +git clone https://gitea.ditaajipratama.net/aji/emacs.d.git ~/.emacs.d +``` + +Be careful, it will remove your old `.emacs.d` directory and `.emacs` file.