Skip to content

Jamie-Cui/emacs.d

Repository files navigation

Emacs.d

 ********                                      
/**/////                                       
/**       **********   ******    *****   ******
/******* //**//**//** //////**  **///** **//// 
/**////   /** /** /**  ******* /**  // //***** 
/**       /** /** /** **////** /**   ** /////**
/******** *** /** /**//********//*****  ****** 
//////// ///  //  //  ////////  /////  ////// 

What this config does?

  1. Use melpa only.
  2. Use emacs version 30.1.
  3. Use Maple Mono NF CN: repo, download.
  4. Use Plantuml for uml drawing: download.
  5. Use emacs build-in tree-sitter.

Getting started

Prerequisite

  • gcc toolchain (gcc, g++, cmake, makefile, autotools, …): compile environment
  • libgccjit: for emacs’s native compilation feature
  • libsqlite3: for org-roam database
  • libtree-sitter (tested with version 0.25.8, repo): for tree-sitter,
  • texlive: for latex

Dwonload and Compile Emacs

# download
wget -c https://github.com/emacs-mirror/emacs/archive/refs/tags/emacs-30.1.tar.gz
# or the following dev branch with tty-child-frame feature
wget -c https://github.com/emacs-mirror/emacs/archive/refs/heads/scratch/tty-child-frames.zip

# unzip and enter emacs folder
autoconf
# (alt) configure terminal emacs
./configure --with-native-compilation --with-tree-sitter --with-gnutls --without-x-toolkit --without-xpm --without-gif --without-tiff --with-sqlite3
# (alt) configure gui emacs
./configure --with-native-compilation --with-tree-sitter --with-sqlite3 --with-pgtk
# compile
sudo make install

Have tree-sitter problem? see: link. Or download tree-sitter pre-built binaries here.

Setup $HOME/.emacs.d/init.el

(defvar +emacs/repo-directory "~/Desktop/emacs.d")
(load (concat +emacs/repo-directory "/init.el"))

C/C++ Dev Tools

  • clangd, clang-format, clang-tidy
# ubuntu
sudo apt install clangd, clang-format, clang-tidy
# macos
brew install clangd, clang-format, clang-tidy
  • cpplint
pip3 install cpplint
  • cmake-format
pip3 install cmake-format
git clone https://github.com/universal-ctags/ctags.git
cd ctags
./autogen.sh
./configure --prefix=$HOME/.local
make
make install

Others

alias et='tmux attach -t emacs-session || tmux new -s emacs-session "emacs -nw"'

About

My personal emacs config

Resources

License

Stars

Watchers

Forks

Packages

No packages published