Doom Setup and configuration
Installation
Install Emacs
Linux (Debian)
# install emacs from snap
sudo apt install snapd -y
sudo snap install emacs --classic
Install Doom Emacs
# Clone Doom Emacs
rm -rf ~/.emacs.d
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
# Clone config
cd ~
# remove the existing doom configuration file if already present
rm -rf ~/.doom.d
git clone git@github.com:bipinmdr07/.doom.d.git # recommended for me
# OR
git clone https://github.com/bipinmdr07/.doom.d.git
~/.emacs.d/bin/doom install
Installing dependencies
First run the doom emacs `doctor` command and install missing dependencies manually as suggested.
~/.emacs.d/bin/doom doctor
LSP (Language Server Protocol)
Have to install Deno for js-ts-lsp site can be found here at Dano installation page
curl -fsSL https://deno.land/x/install/install.sh | sh
Setting up Magit
- First create a `Personal access token` by going to `setting` and `Developer setting` on with name
{{username}}^forge // bipinmdr07^forge
- Configure the `github.name` to register a username for forge by running
git config --global github.user {{username}} # example git config --global github.user bipinmdr07
- create a `.authinfo` file with content
machine api.github.com login {{username}}^forge password {{personal_access_token}}
- encrypt the `.authinfo` file to `.authinfo.gpg` with password by running
M-x epa-encrypt-file
and select the `.authinfo` file