add a minimal config for emacs

Otherwise org-ref doesn't work which leads to broken references
This commit is contained in:
Andreas Zweili 2018-12-11 22:47:58 +01:00
parent 7250e9e4e7
commit f3dea30b86
2 changed files with 37 additions and 1 deletions

36
general/thesis.el Normal file
View File

@ -0,0 +1,36 @@
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq vc-follow-symlinks t);; always follow symlinks
;; keep customize settings in their own file
(setq custom-file "~/.emacs.d/custom.el")
(when (file-exists-p custom-file)
(load custom-file))
(require 'org)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/")))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(use-package use-package-ensure-system-package
:ensure t)
(use-package org-ref
:ensure t
:after org
:init
(setq org-ref-completion-library 'org-ref-ivy-cite)
:config
(setq org-ref-default-citation-link "footcite"))

View File

@ -68,5 +68,5 @@ pictures/%.svg: pictures/%.puml
java -jar ~/bin/plantuml.jar -tsvg $<
projekthandbuch.tex: projekthandbuch.org
emacs -l ~/.emacs.d/init.el --batch \
emacs -l general/thesis.el --batch \
--eval="(progn (find-file \"projekthandbuch.org\") (org-latex-export-to-latex nil nil nil t))"