diff options
author | Adrian Kummerlaender | 2021-06-15 21:56:07 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2021-06-15 21:56:07 +0200 |
commit | f02da2274f013431a6428e05956fd80c33a12a9f (patch) | |
tree | 866d6b1742f8dfd0db6bbc2f806a2b0133062a86 /gui | |
parent | d6737a7b73e2b77ca83ad4ff4975f55feb2d0a21 (diff) | |
download | nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar.gz nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar.bz2 nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar.lz nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar.xz nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.tar.zst nixos_home-f02da2274f013431a6428e05956fd80c33a12a9f.zip |
Add basic org-ref setup
Diffstat (limited to 'gui')
-rw-r--r-- | gui/conf/init.el | 37 | ||||
-rw-r--r-- | gui/emacs.nix | 2 |
2 files changed, 27 insertions, 12 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el index 11b307b..46f2292 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -35,6 +35,9 @@ (savehist-mode 1) (global-eldoc-mode -1) +(global-visual-line-mode 1) + +(setq warning-minimum-level :error) (setq mouse-wheel-scroll-amount '(5)) (setq mouse-wheel-progressive-speed nil) @@ -64,6 +67,10 @@ (set-face-attribute 'fixed-pitch nil :family "Iosevka") (set-face-attribute 'variable-pitch nil :family "Source Sans Pro" :height 1.1) +(global-set-key (kbd "<M-tab>") 'next-buffer) +(global-set-key (kbd "<M-iso-lefttab>") 'previous-buffer) +(global-set-key (kbd "<C-tab>") 'other-window) + (load-library "custom-runtime-env") (setq auto-mode-alist @@ -106,7 +113,7 @@ :after evil :ensure t :config - (setq evil-collection-mode-list '(dired eshell eww pdf magit ediff)) + (setq evil-collection-mode-list '(dired eshell eww pdf magit ediff pdf)) (evil-collection-init)) (use-package which-key @@ -165,7 +172,7 @@ :ensure t) (use-package org - :ensure t + :ensure org-plus-contrib :custom (org-adapt-indentation nil) (org-startup-indented t) @@ -188,6 +195,7 @@ (org-fontify-done-headline nil) :init (require 'org-protocol) + (require 'ox-bibtex) :config (evil-leader/set-key "oy" 'org-store-link) (evil-leader/set-key "on" 'org-capture) @@ -292,11 +300,6 @@ (setq org-bullets-bullet-list '("●" "●" "⤷" "⤷")) (add-hook 'org-mode-hook #'org-bullets-mode)) -(use-package zotxt - :ensure t - :config - (add-hook 'org-mode-hook 'org-zotxt-mode)) - (use-package ox-reveal :ensure t) @@ -355,15 +358,24 @@ :config (evil-leader/set-key "s" 'helm-swoop-without-pre-input)) +(use-package org-ref + :ensure t + :custom + (reftex-default-bibliography '("~/university/bib/lit.bib")) + (org-ref-bibliography-notes "~/org/literature.org") + (org-ref-default-bibliography '("~/university/bib/lit.bib")) + (org-ref-get-pdf-filename-function 'org-ref-get-pdf-filename-helm-bibtex)) + (use-package helm-bibtex :ensure t :config (setq bibtex-completion-bibliography '("~/university/bib/lit.bib")) (setq bibtex-completion-pdf-field "file")) -(global-set-key (kbd "<M-tab>") 'next-buffer) -(global-set-key (kbd "<M-iso-lefttab>") 'previous-buffer) -(global-set-key (kbd "<C-tab>") 'other-window) +(use-package zotxt + :ensure t + :config + (add-hook 'org-mode-hook 'org-zotxt-mode)) (evil-define-key 'normal 'global "J" 'evil-forward-paragraph @@ -532,7 +544,10 @@ (use-package pdf-tools :defer t :mode "\\.pdf$" - :config (pdf-tools-install)) + :config + (pdf-tools-install) + :init + (evil-collection-pdf-setup)) (use-package pocket-reader :ensure t diff --git a/gui/emacs.nix b/gui/emacs.nix index 3cd47fc..6242cca 100644 --- a/gui/emacs.nix +++ b/gui/emacs.nix @@ -28,7 +28,7 @@ in { name = "custom-runtime-env.el"; text = '' (setenv "PATH" (concat (getenv "PATH") - ":${tex}/bin:${pkgs.pandoc}/bin")) + ":${tex}/bin:${pkgs.pandoc}/bin:${pkgs.bibtex2html}/bin")) (add-to-list 'exec-path "${tex}/bin") (add-to-list 'exec-path "${pkgs.graphviz}/bin") (add-to-list 'exec-path "${pkgs.gnuplot}/bin") |