Skip to content

Latest commit

 

History

History
114 lines (76 loc) · 2.52 KB

README.md

File metadata and controls

114 lines (76 loc) · 2.52 KB

Screenshot

Screenshot

About

Emacs Configuration

My Emacs configuration that includes:

  • Manage package via use-package & straight
  • Python/Go/LSP
  • Org-mode/org-roam/org-journal

Installation

$ git clone https://github.com/coldnight/.emacs.d ~/.emacs.d

Open your Emacs and wait the initialization done.

Optional

You can configure Git to connect to GitHub over SSH, if you encountered network issues when connected to GitHub over HTTPs.

$ git config --global url."[email protected]:".insteadOf "https://github.com/"

Setup

Fonts

icons

Install all-the-icons fonts: M-x all-the-icons-install-fonts RET

org-roam & org-journal & org-agenda &ox-hugo

  1. Install hugo

  2. Create a hugo site

    $ hugo new site ~/codes/notes/roam-research-notes-hugo
  3. Make directories

    $ mkdir -p ~/codes/notes/roam-research-notes-hugo/journal
    $ mkdir -p ~/codes/notes/roam-research-notes-hugo/content-org
    $ mkdir -p ~/codes/notes/roam-research-notes-hugo/gtd

Golang

Install gopls

GO111MODULE=on go get golang.org/x/tools/gopls@latest

Set GOPROXY:

go env -w GOPROXY="https://goproxy.io,direct"

Graphviz

Install Graphviz to draw it in org-mode with evaluate code block.

C/C++

Install clangd for lsp-mode.

Use cmake to generate clangd configurations:

mkdir build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
mv compile_commands.json ../

Rust

cargo install cargo-add cargo-expand cargo-watch

M-x lsp-install-server RET rust-analyzer RET

Notify

brew install terminal-notifier

vterm

brew install cmake libvterm

Awesome .emacs.d