This is Jamie’s private [doom emacs](https://github.com/doomemacs/doomemacs) config. Please make sure you are using [zsh shell](https://www.zsh.org/) (recommende to use [omz](https://ohmyz.sh/))! Pesonally, I use this config to do **daily-cpp-dev**, **paper-writing**, and paper related **note-taking**, so as a summary, this config
- Supports remote cpp developing with tramp, with correctly configured code-format (clang-format), lsp (eglot + clangd), bazel
- Supports latex acadamic paper writing, and note taking
WARNING: This config is only designed for MacOS
Thirdparty libraries:
- [wondershaper](https://github.com/magnific0/wondershaper): Command-line utility for limiting an adapter’s bandwidth
- [secretflow/devtools](https://github.com/secretflow/devtools): Secretflow’s development tools
Recommended MacOS Apps:
- [skim](https://skim-app.sourceforge.io/): open-source PDF reader and note-taker for OS X
- [alacritty](https://alacritty.org/): cross-platform OpenGL terminal emulator
- [zotero](https://www.zotero.org/): free and easy-to-use biblography tool
- [MacTex](https://tug.org/mactex/): standard distribution of TeX, LaTeX, and related programs produced by TeX Users Groups across the world
Of course, you need to download Emacs and doom first. As in [doom’s getting started guide](https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#with-homebrew) says,
So, do the following steps. First, install presiquites with [Homebrew](https://brew.sh/).
xcode-select --install
# for emacs
brew install git ripgrep coreutils fd libtool fontconfig ripgrep pngpaste
# for cpp development (optional)
brew install clang-format bazelisk cmake ninja
Then, install emacs-plus,
brew tap d12frosted/emacs-plus
brew install emacs-plus --with-native-comp
ln -s /usr/local/opt/emacs-plus/Emacs.app /Applications/Emacs.app
# open emacs
open -a "emacs" # you can also setup this as quick open script in alfred
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
./${PROJECT_ROOT}/scripts/setup-bin.el
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install leetcode-cli
sudo ln -s /Library/TeX/texbin/latex /usr/local/bin
sudo ln -s /Library/TeX/texbin/latex /usr/local/bin
sudo ln -s /Library/TeX/texbin/dvipng /usr/local/bin
see: https://apple.stackexchange.com/a/83923, remember to restart your system in order for the configs to take effect.
defaults write -g InitialKeyRepeat -int 15 // I think 15 is better, you can set this to 10
defaults write -g KeyRepeat -int 1
# or, config those values though GUI
open ~/Library/Preferences/.GlobalPreferences.plist
Remember to log-out and re-log-in for those changes to take effect.
git config --global http.postBuffer 524288000
see: railwaycat/homebrew-emacsmacport#312
One hotkey: Launch Editor, Bring Editor to front window, Open file/folder in Editor. Easily change TextEditor/IDE. Support Vim and Emacs! see: https://github.com/willbchang/alfred-open-in-editor
see: https://github.com/giovannicoppola/zothero
try the following, see: https://emacs-china.org/t/doom-emacs/16069
git config --global url.https://github.com.cnpmjs.org/.insteadof https://github.com/