diff options
| -rw-r--r-- | init.el | 3 | ||||
| -rw-r--r-- | mixins/base.el (renamed from mixins/ui.el) | 0 | ||||
| -rw-r--r-- | mixins/researcher.el | 54 | 
3 files changed, 56 insertions, 1 deletions
| @@ -45,7 +45,8 @@  (windmove-default-keybindings 'control) ; You can use other modifiers here  ;; Make right-click do something sensible -(context-menu-mode) +(when (display-graphic-p) +  (context-menu-mode))  ;; Don't litter filesystem with *~ backup files; put them all inside  ;; ~/.emacs.d/backup or wherever diff --git a/mixins/ui.el b/mixins/base.el index 4a3f003..4a3f003 100644 --- a/mixins/ui.el +++ b/mixins/base.el diff --git a/mixins/researcher.el b/mixins/researcher.el index fad1a36..7cf738c 100644 --- a/mixins/researcher.el +++ b/mixins/researcher.el @@ -5,6 +5,9 @@  ;;; Usage: Append or require this file from init.el for research helps. If you  ;;; write papers in LaTeX and need to manage your citations or keep track of  ;;; notes, this package is for you. +;;; +;;; Highly recommended to enable this mixin with the UI enhancements in +;;; `base.el', as citar works best with the Vertico completing-read interface.  ;;; Contents:  ;;; @@ -15,10 +18,48 @@  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;; +;;;   Critical variables +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;;; These variables must be set for citar to work properly! + +(setq citar-bibliography '("~/refs.bib")) ; paths to your bibtex files + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;  ;;;   Citation Management  ;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(use-package citar +  :ensure t +  :bind (("C-c b" . citar-insert-citation) +         :map minibuffer-local-map +         ("M-b" . citar-insert-preset)) +  :custom +  ;; Allows you to customize what citar-open does +  (citar-file-open-functions '(("html" . citar-file-open-external) +                               ;; ("pdf" . citar-file-open-external) +                               (t . find-file)))) + +;; Optional: if you have the embark package installed, enable the ability to act +;; on citations with citar by invoking `embark-act'. +;(use-package citar-embark +;  :after citar embark +;  :diminish "" +;  :no-require +;  :config (citar-embark-mode)) + +(use-package citar-org-roam +  :diminish "" +  ;; To get this to work both citar *and* org-roam have to have been used +  :after citar org-roam +  :no-require +  :config +  (citar-org-roam-mode) +  (setq citar-org-roam-note-title-template "${author} - ${title}\n#+filetags: ${tags}")) +  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;;  ;;;   Authoring @@ -31,6 +72,19 @@  ;;;  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(use-package org-roam +  :ensure t +  :config +  ;; Make sure the backlinks buffer always shows up in a side window +  (add-to-list 'display-buffer-alist +               '("\\*org-roam\\*" +                 (display-buffer-in-side-window) +                 (side . right) +                 (window-width . 0.4) +                 (window-height . fit-window-to-buffer))) + +  (org-roam-db-autosync-mode)) +  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;;  ;;;   Note Taking: Denote | 
