Skip to content

lizqwerscott/.emacs.d

Repository files navigation

My Emacs Config

This is my little Emacs config.

Main interface images/EmacsMain.png

Dirvish File Manager images/EmacsFile.png

Install

Install Emacs

Arch linux

package

sudo pacman -S emacs-git

compile

Install dependencies
yay -S tree-sitter sqlite3
Compile
git clone https://github.com/emacs-mirror/emacs.git --depth=1 &&
cd emacs && git pull && ./autogen.sh &&
./configure --with-tree-sitter &&
sudo make install -j16

Ubuntu

Install dependencies

sudo apt build-dep emacs
sudo apt install libgccjit0 libgccjit-10-dev libjansson4 libjansson-dev \
    gnutls-bin libtree-sitter-dev gcc-10 imagemagick libmagick++-dev \
    libwebp-dev webp libxft-dev libxft2 \
    sqlite3

Compile

git clone https://github.com/emacs-mirror/emacs.git --depth=1 &&
cd emacs && git pull && ./autogen.sh &&
./configure --with-tree-sitter &&
sudo make install -j16

Download source code:

Use ssh:

git clone [email protected]:lizqwerscott/.emacs.d.git ~/.emacs.d/

Use http:

git clone https://github.com/lizqwerscott/.emacs.d.git  ~/.emacs.d/

Fetch all submodules:

git submodule update --init --recursive

git submodule foreach git reset --hard

git submodule foreach git checkout master

Dependencies

Need install some package

  1. xclip
  2. ripgrep
  3. fd
  4. sdcv
  5. translate-shell for immersive translate
  6. tgs2png for telega use

Need build tree-sitter library

clone build scripts

http
git clone https://github.com/lizqwerscott/tree-sitter-module.git -b vue
ssh
git clone [email protected]:lizqwerscott/tree-sitter-module.git -b vue

build

JOBS=16 ./batch.sh

copy library

Copy generated library to “~/.emacs.d/tree-sitter”

mkdir -p ~/.emacs.d/tree-sitter/
cp -r ./dist/* ~/.emacs.d/tree-sitter/

rename gomod library

The repository lib-tree-sitter-go-mod generates a library named `go-mod`, but internally it uses the name `gomod`. Since Emacs looks for `gomod`, we need to rename it accordingly.

cd ~/.emacs.d/tree-sitter/
mv libtree-sitter-go-mod.so libtree-sitter-gomod.so

Install language server

Get list form lsp bridge

Need download sdcv dict

sdcv download url

Need build TD library

git clone https://github.com/tdlib/td.git
cd td && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Dirvish dependencies

Arch

sudo pacman -S fd poppler ffmpegthumbnailer mediainfo imagemagick tar unzip

Debian

sudo apt install fd-find poppler-utils ffmpegthumbnailer mediainfo imagemagick tar unzip

Fonts

Arch Linux

English

Source Code Pro

yay -S ttf-adobe-source-code-pro-fonts

Chinese

LXGW WenKai Screen (霞鹜文楷的屏幕舒适阅读版本)

yay -S ttf-lxgw-wenkai-screen

LXGW Neo Xihei (霞鹜新晰黑)

yay -S ttf-lxgw-neo-xihei-screen-full

Dict

Install dict in /usr/share/dict/ path.

Arch

sudo pacman -S words

Update extensions:

git submodule foreach git pull --rebase

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •