From 896a13b2cd8896794d6754910b872cfda5480d98 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 2 Apr 2020 01:42:51 +0200 Subject: [PATCH] Set up org-ref and eisvogel export --- +org.el | 13 ++++++++++--- +ui.el | 1 + config.el | 2 +- packages.el | 2 +- snippets/org-mode/eisvogel template metadata | 17 +++++++++++++++++ 5 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 snippets/org-mode/eisvogel template metadata diff --git a/+org.el b/+org.el index aadcc1e..dd6d432 100644 --- a/+org.el +++ b/+org.el @@ -25,16 +25,23 @@ (:name "Due soon" :deadline future))) :config - (org-super-agenda-mode) - ) + (org-super-agenda-mode)) ;; Show inline images by default (setq org-startup-with-inline-images t) ;; Add timestamp to DONE task (setq org-log-done 'time) ;; Print babel results to the buffer -(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "code") +(setq org-babel-default-header-args '((:session . "none") (:results . "output") (:exports . "both") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no"))) ;; Enter writeroom-mode in all org files (add-hook 'org-mode-hook 'global-writeroom-mode) ;; Respect LANGUAGE export variable (add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex"))) +;; Don't evaluate code blocks on export +(setq org-export-use-babel nil) +;; Configure org-ref +(use-package! org-ref + :after org + :init + (setq org-ref-default-bibliography '("~/Documents/Education/Other/References.bib")) + :config) diff --git a/+ui.el b/+ui.el index 5b02de8..d13d3fe 100644 --- a/+ui.el +++ b/+ui.el @@ -14,3 +14,4 @@ (setq doom-modeline-major-mode-icon t doom-modeline-persp-name t doom-modeline-buffer-encoding nil) +(setq evil-command-window-height 3) diff --git a/config.el b/config.el index fc8b75d..895bd56 100644 --- a/config.el +++ b/config.el @@ -13,7 +13,7 @@ auto-save-list-file-prefix (concat "~/.cache/emacs")) ;; Set Magit repositories -(setq magit-repository-directories '(("~/Projects" . 2) +(setq magit-repository-directories '(("~/Projects" . 3) ("~/.dotfiles" . 0) ("~/.doom.d" . 0))) ;; Load org configuration diff --git a/packages.el b/packages.el index fed7d28..38e8d24 100644 --- a/packages.el +++ b/packages.el @@ -6,4 +6,4 @@ ;; (package! another-package :recipe (:host github :repo "username/repo")) ;; (package! builtin-package :disable t) (package! org-super-agenda) -(package! pandoc-mode) +(package! org-ref) diff --git a/snippets/org-mode/eisvogel template metadata b/snippets/org-mode/eisvogel template metadata new file mode 100644 index 0000000..467670b --- /dev/null +++ b/snippets/org-mode/eisvogel template metadata @@ -0,0 +1,17 @@ +# -*- mode: snippet -*- +# name: eisvogel template metadata +# key: eis +# -- +#+TITLE: $0 +#+SUBTITLE: +#+AUTHOR: Amin Kasrou Aouam +#+DATE: `(format-time-string "%Y-%m-%d")` +#+LANGUAGE: es +#+PANDOC_OPTIONS: template:~/.pandoc/templates/eisvogel.latex +#+PANDOC_OPTIONS: listings:t +#+PANDOC_OPTIONS: toc:t +#+PANDOC_METADATA: titlepage:t +#+PANDOC_METADATA: listings-no-page-break:t +#+PANDOC_METADATA: toc-own-page:t +#+PANDOC_METADATA: table-use-row-colors:t +#+PANDOC_METADATA: logo:/home/coolneng/Photos/Logos/UGR.png \ No newline at end of file