diff options
| author | BardofSprites <[email protected]> | 2024-12-11 15:38:50 -0500 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2024-12-11 15:38:50 -0500 |
| commit | 10469d57aa3b2a7c8bb556b3db2970f4820049b4 (patch) | |
| tree | 92b0ec1c0a7dc87bf57222e714c61e35ccc4761d /bard-emacs-modules/bard-emacs-writing.el | |
| parent | 5b42abede57b05c985c48d35c862b55e96ab9c09 (diff) | |
physics lab template
Diffstat (limited to 'bard-emacs-modules/bard-emacs-writing.el')
| -rw-r--r-- | bard-emacs-modules/bard-emacs-writing.el | 57 |
1 files changed, 36 insertions, 21 deletions
diff --git a/bard-emacs-modules/bard-emacs-writing.el b/bard-emacs-modules/bard-emacs-writing.el index 9338764..8ad8526 100644 --- a/bard-emacs-modules/bard-emacs-writing.el +++ b/bard-emacs-modules/bard-emacs-writing.el @@ -74,15 +74,18 @@ (setq denote-journal-extras-directory "~/Notes/journal") (setq denote-rename-buffer-format "[Note] %t %b") (setq denote-known-keywords - '("emacs" - "linux" - "programming" - "org" - "school" - "language" - "history" - "biology" - )) + '("emacs" + "linux" + "programming" + "org" + "school" + "language" + "history" + "biology" + )) + (setq denote-templates + '((physics . "* Introduction\n** Hypothesis\n** Materials\n* Procedure\n* Data\n* Conclusion"))) + (setq denote-save-buffers t) (setq denote-prompts '(title keywords subdirectory)) (denote-rename-buffer-mode 1) @@ -127,12 +130,12 @@ :global nil (if bard/scroll-center-cursor-mode (setq-local scroll-margin (* (frame-height) 2) - scroll-conservatively 0 - maximum-scroll-margin 0.5) + scroll-conservatively 0 + maximum-scroll-margin 0.5) (dolist (local '(scroll-preserve-screen-position - scroll-conservatively - maximum-scroll-margin - scroll-margin)) + scroll-conservatively + maximum-scroll-margin + scroll-margin)) (kill-local-variable `,local)))) (defun bard/cursor-centered-p () "Check if `bard/scroll-center-cursor-mode` is currently active." @@ -166,17 +169,17 @@ (setq logos-outlines-are-pages t) (setq logos-outline-regexp-alist - `((emacs-lisp-mode . "^;;;+ ") + `((emacs-lisp-mode . "^;;;+ ") (org-mode . "^\\* +") (t . ,(or outline-regexp logos--page-delimiter)))) (setq-default logos-hide-cursor nil - logos-hide-mode-line nil - logos-hide-header-line t - logos-hide-buffer-boundaries t - logos-hide-fringe t - logos-variable-pitch t - logos-olivetti t) + logos-hide-mode-line nil + logos-hide-header-line t + logos-hide-buffer-boundaries t + logos-hide-fringe t + logos-variable-pitch t + logos-olivetti t) (defun bard/logos--recenter-top () "Use `recenter' to reposition the view at the top." @@ -198,4 +201,16 @@ :config (pdf-tools-install)) +(use-package citar + :ensure t + :config + (setq citar-bibliography '("~/Notes/denote/bib/references.bib")) + (setq org-cite-global-bibliography '("~/Notes/denote/bib/references.bib")) + (setq org-cite-insert-processor 'citar) + (setq org-cite-follow-processor 'citar) + (setq org-cite-activate-processor 'citar) + (setq citar-bibliography org-cite-global-bibliography) + :bind + (:map org-mode-map ("C-c b" . #'citar-insert-citation))) + (provide 'bard-emacs-writing) |
