鴨川η

not δ

emacs tips

install

$ brew install emacs --with-cocoa

install prelude

$ curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | zsh

add alias

$ cat ~/.zshrc

...
alias es='emacs --daemon'
alias et='emacsclient -t'
alias ec='emacsclient -c'
alias vim='emacsclient -t'
alias vi='emacsclient -t'

org-mode+lualatex

It is difficult for me to use minted

Add ~/.emacs.d/personal/settings.el

You could write raw tex code in org file.

\begin{algorithm}
\begin{algorithmic}[1]
\State {$c \gets 1$}
\While {$b \geq 0$}
  \State {$c \gets ac$}
  \State {$b \gets b-1$}
\EndWhile
\end{algorithmic}
\end{algorithm}

change default font

(add-to-list 'default-frame-alist '(font . "Ricty Diminished Discord-15"))

org-ref

requirement

all bibliographies in ~/Dropbox/papers/library.bib (mendely)

procedures
  • install org-ref from M-x package-list-packages
  • add code to your init.el
  (setq reftex-default-bibliography '("~/Dropbox/papers/library.bib"))
  (setq org-ref-default-bibliography '("~/Dropbox/papers/library.bib"))
  (setq bibtex-completion-bibliography "~/Dropbox/papers/library.bib")
  (require 'org-ref)
  • add code below tail of your org file
bibliographystyle:junsrt
bibliography:~/Dropbox/papers/library.bib
  • exec M-x org-ref-helm-cite-link and then select a bibliograpy where you want to add cite in org file.