From 1028c5d46bc7c37a7d273b637402041522dd8b4c Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 15 Mar 2021 16:51:50 +0100 Subject: [PATCH] config/doom: org mode adjustments --- .config/doom/.gitignore | 1 - .config/doom/config.el | 8 +++++--- .config/doom/init.el | 2 +- .config/doom/packages.el | 2 +- .config/doom/snippets/org-mode/superscript-reference | 5 +++++ 5 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .config/doom/snippets/org-mode/superscript-reference diff --git a/.config/doom/.gitignore b/.config/doom/.gitignore index 0701d79..22eb440 100644 --- a/.config/doom/.gitignore +++ b/.config/doom/.gitignore @@ -1,3 +1,2 @@ local.el custom.el -*/ diff --git a/.config/doom/config.el b/.config/doom/config.el index 822c843..f089891 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -25,7 +25,7 @@ ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: (setq doom-theme 'doom-one - doom-font (font-spec :family "Fira Code" :size 20 :weight 'semi-light) + doom-font (font-spec :family "monospace" :size 20 :weight 'semi-light) doom-variable-pitch-font (font-spec :family "sans" :size 20)) (setq display-line-numbers-type 'relative) @@ -80,6 +80,7 @@ ;; ORG (let ((default-directory user-data-dir)) + (setq initial-buffer-choice (expand-file-name "2-standards/notes/journal/log.org")) (setq org-directory (expand-file-name "1-projects")) (setq org-roam-directory (concat (file-name-as-directory (getenv "XDG_DATA_HOME")) "org-roam")) (require 'org) @@ -98,9 +99,9 @@ (setq org-image-actual-width nil) ;; Exporting - https://orgmode.org/manual/Export-Settings.html -(setq org-latex-pdf-export "latexmk -outdir=/tmp/latexmk -f -pdf %F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o") +(setq org-latex-pdf-process '("latexmk -outdir=/tmp/latexmk -f -pdf %F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o")) ; https://emacs.stackexchange.com/a/48351 (setq org-latex-packages-alist '(("margin=3cm" "geometry") ("avoid-all" "widows-and-orphans"))) -(setq org-export-with-sub-superscripts "{}") +(setq org-export-with-sub-superscripts '{}) (setq org-export-with-tags nil) (setq org-export-with-tasks nil) @@ -111,6 +112,7 @@ ;; Fix xdg-open & open PDF in Emacs - https://depp.brause.cc/dotemacs/#orgd97f08c (setq org-file-apps '((remote . emacs) + ("\\.pdf\\'" . default) (auto-mode . emacs) (directory . emacs) (system . "setsid -w xdg-open %s") diff --git a/.config/doom/init.el b/.config/doom/init.el index 3036cf9..0d98e09 100644 --- a/.config/doom/init.el +++ b/.config/doom/init.el @@ -145,7 +145,7 @@ ;;nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel - (org +roam +journal); organize your plain life in plain text + (org +dragndrop +present +roam +journal); organize your plain life in plain text ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional diff --git a/.config/doom/packages.el b/.config/doom/packages.el index 986b50a..b7a4024 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -52,7 +52,7 @@ (package! annotate) ; Annotations (package! visual-fill-column) ; Soft line wrapping at character count (package! togetherly) ; Collaborative editing -(package! ox-reveal) ; Presentations +;(package! ox-reveal) ; Presentations (package! evil-args) ; motions in args (package! evil-replace-with-register) ; grrrrr diff --git a/.config/doom/snippets/org-mode/superscript-reference b/.config/doom/snippets/org-mode/superscript-reference new file mode 100644 index 0000000..c085369 --- /dev/null +++ b/.config/doom/snippets/org-mode/superscript-reference @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: org-superscript-reference +# key: ^ +# -- +^{[$0]}