Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

cszang/dotemacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My configuration file for Emacs.

General

Enable trashing of files from dired on macOS.

brew install trash

Org

Get more recent org-mode from MELPA like this

emacs -Q -batch -eval "(progn (require 'package) (add-to-list 'package-archives '(\"org\" . \"http:https://orgmode.org/elpa/\"))  (package-initialize) (package-refresh-contents) (package-install 'org-plus-contrib))"

Org-babel support for Julia is added via ob-julia.el. This uses an external repository:

git clone https://github.com/gjkerns/ob-julia.git ~/lisp/ob-julia

Spellchecking

Spell checking is done using aspell which has to be installed separately. On OS X:

brew install aspell --with-lang-de --with-lang-en

Dictionary

Install and use Webster’s dictionary.

brew install sdcv
mkdir -p ~/.stardict/dic/
wget https://s3.amazonaws.com/jsomers/dictionary.zip
unzip dictionary.zip
cd dictionary
tar jxf stardict-dictd-web1913-2.4.2.tar.bz2
mv stardict-dictd-web1913-2.4.2/* ~/.stardict/dic/

with point on word, do M-x sdcv-search

ESS

ESS is installed as described in the instructions, and not from MELPA!

So, this is:

git clone https://github.com/emacs-ess/ESS.git ~/lisp/ess

Then, checkout appropriate tag, if wanted.

LSP

Install LSP

cd ~/lisp
git clone https://github.com/cquery-project/cquery --single-branch --depth=1
cd cquery
git submodule update --init && ./waf configure build

Generate compile_commands.json

To use with project, run cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 . in source directory.

Synctex

We also need in ~/.latexmkrc:

$pdflatex = 'pdflatex -interaction=nonstopmode -synctex=1 %O %S';
$pdf_previewer = 'open -a skim';
$clean_ext = 'bbl rel %R-blx.bib %R.synctex.gz';

Elpy

pip install jedi flake8 autopep8

About

Emacs configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages