mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
update org agenda file list
This commit is contained in:
parent
b50199a4e9
commit
0490f8bb7a
2 changed files with 63 additions and 61 deletions
123
emacs.nix
123
emacs.nix
|
@ -395,85 +395,86 @@ in {
|
||||||
(my/org-force-open-current-window)))
|
(my/org-force-open-current-window)))
|
||||||
'';
|
'';
|
||||||
init = ''
|
init = ''
|
||||||
; -*-emacs-lisp-*-
|
; -*-emacs-lisp-*-
|
||||||
(defvar my/org-dir "~/Documents/org/")
|
(defvar my/org-dir "~/Documents/org/")
|
||||||
|
|
||||||
(require 'oc)
|
(require 'oc)
|
||||||
(require 'oc-basic)
|
(require 'oc-basic)
|
||||||
(require 'oc-csl)
|
(require 'oc-csl)
|
||||||
(require 'oc-natbib)
|
(require 'oc-natbib)
|
||||||
(require 'ox-latex)
|
(require 'ox-latex)
|
||||||
|
|
||||||
(setq org-src-window-setup 'current-window)
|
(setq org-src-window-setup 'current-window)
|
||||||
(setq org-confirm-babel-evaluate nil)
|
(setq org-confirm-babel-evaluate nil)
|
||||||
(setq org-src-fontify-natively t)
|
(setq org-src-fontify-natively t)
|
||||||
(setq org-src-tab-acts-natively t)
|
(setq org-src-tab-acts-natively t)
|
||||||
(setq org-src-preserve-indentation t)
|
(setq org-src-preserve-indentation t)
|
||||||
|
|
||||||
(setq org-export-with-tags nil)
|
(setq org-export-with-tags nil)
|
||||||
|
|
||||||
(setq org-publish-project-alist
|
(setq org-publish-project-alist
|
||||||
'(("root"
|
'(("root"
|
||||||
:base-directory (expand-file-name my/org-dir)
|
:base-directory (expand-file-name my/org-dir)
|
||||||
:publishing-function org-html-publish-to-html
|
:publishing-function org-html-publish-to-html
|
||||||
:publishing-directory (expand-file-name "~/public_html")
|
:publishing-directory (expand-file-name "~/public_html")
|
||||||
:section-numbers nil
|
:section-numbers nil
|
||||||
|
|
||||||
:with-author nil
|
:with-author nil
|
||||||
:with-creator t
|
:with-creator t
|
||||||
:with-toc t
|
:with-toc t
|
||||||
:time-stamp-file nil)))
|
:time-stamp-file nil)))
|
||||||
|
|
||||||
;; Configure HTML export
|
;; Configure HTML export
|
||||||
(setq org-html-validation-link nil)
|
(setq org-html-validation-link nil)
|
||||||
(setq org-html-head-include-scripts nil)
|
(setq org-html-head-include-scripts nil)
|
||||||
(setq org-html-head-include-default-style nil)
|
(setq org-html-head-include-default-style nil)
|
||||||
(setq org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
|
(setq org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
|
||||||
(setq org-html-section)
|
(setq org-html-section)
|
||||||
|
|
||||||
(setq bibtex-completion-notes-path (expand-file-name "notes.org" my/org-dir))
|
(setq bibtex-completion-notes-path (expand-file-name "notes.org" my/org-dir))
|
||||||
|
|
||||||
(setq org-cite-global-bibliography '("~/Documents/org/zotero.bib"))
|
(setq org-cite-global-bibliography '("~/Documents/org/zotero.bib"))
|
||||||
|
|
||||||
(setq org-cite-export-processors '((t basic)))
|
(setq org-cite-export-processors '((t basic)))
|
||||||
|
|
||||||
(setq org-cite-follow-processor 'ivy-bibtex-org-cite-follow)
|
(setq org-cite-follow-processor 'ivy-bibtex-org-cite-follow)
|
||||||
|
|
||||||
(setq org-cite-csl-styles-dir "~/Zotero/styles")
|
(setq org-cite-csl-styles-dir "~/Zotero/styles")
|
||||||
|
|
||||||
(setq bibtex-completion-pdf-open-function
|
(setq bibtex-completion-pdf-open-function
|
||||||
(lambda (fpath)
|
(lambda (fpath)
|
||||||
(call-process "open" nil 0 nil "-a" "/Applications/Preview.app" fpath)))
|
(call-process "open" nil 0 nil "-a" "/Applications/Preview.app" fpath)))
|
||||||
|
|
||||||
(defun org-export-latex-no-toc (depth)
|
(defun org-export-latex-no-toc (depth)
|
||||||
(when depth
|
(when depth
|
||||||
(format "%% Org-mode is exporting headings to %s levels.\n"
|
(format "%% Org-mode is exporting headings to %s levels.\n"
|
||||||
depth)))
|
depth)))
|
||||||
(setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
|
(setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
|
||||||
|
|
||||||
(setq org-latex-pdf-process
|
(setq org-latex-pdf-process
|
||||||
'("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f"))
|
'("latexmk -pdflatex='pdflatex -interaction nonstopmode' -pdf -bibtex -f %f"))
|
||||||
|
|
||||||
(add-to-list 'exec-path "/Users/willem/.nix-profile/bin")
|
(add-to-list 'exec-path "/Users/willem/.nix-profile/bin")
|
||||||
|
|
||||||
(add-to-list 'org-latex-classes
|
(add-to-list 'org-latex-classes
|
||||||
'("apa6"
|
'("apa6"
|
||||||
"\\documentclass{apa6}"
|
"\\documentclass{apa6}"
|
||||||
("\\section{%s}" . "\\section*{%s}")
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
||||||
|
|
||||||
(add-to-list 'org-latex-classes
|
(add-to-list 'org-latex-classes
|
||||||
'("mla"
|
'("mla"
|
||||||
"\\documentclass{mla}"
|
"\\documentclass{mla}"
|
||||||
("\\section{%s}" . "\\section*{%s}")
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
||||||
|
|
||||||
|
(setq org-agenda-files '("~/Documents/org" "~/Documents/org/ubc"))
|
||||||
'';
|
'';
|
||||||
hook = [
|
hook = [
|
||||||
"(org-babel-after-execute . org-redisplay-inline-images)"
|
"(org-babel-after-execute . org-redisplay-inline-images)"
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
htop
|
htop
|
||||||
bat
|
bat
|
||||||
fd
|
fd
|
||||||
|
gawk
|
||||||
ripgrep
|
ripgrep
|
||||||
jq
|
jq
|
||||||
nmap
|
nmap
|
||||||
|
|
Loading…
Add table
Reference in a new issue