config/doom: org mode adjustments
This commit is contained in:
parent
cc1d4b8a7d
commit
1028c5d46b
|
@ -1,3 +1,2 @@
|
||||||
local.el
|
local.el
|
||||||
custom.el
|
custom.el
|
||||||
*/
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
(setq doom-theme 'doom-one
|
(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))
|
doom-variable-pitch-font (font-spec :family "sans" :size 20))
|
||||||
|
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
|
@ -80,6 +80,7 @@
|
||||||
;; ORG
|
;; ORG
|
||||||
|
|
||||||
(let ((default-directory user-data-dir))
|
(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-directory (expand-file-name "1-projects"))
|
||||||
(setq org-roam-directory (concat (file-name-as-directory (getenv "XDG_DATA_HOME")) "org-roam"))
|
(setq org-roam-directory (concat (file-name-as-directory (getenv "XDG_DATA_HOME")) "org-roam"))
|
||||||
(require 'org)
|
(require 'org)
|
||||||
|
@ -98,9 +99,9 @@
|
||||||
(setq org-image-actual-width nil)
|
(setq org-image-actual-width nil)
|
||||||
|
|
||||||
;; Exporting - https://orgmode.org/manual/Export-Settings.html
|
;; 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-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-tags nil)
|
||||||
(setq org-export-with-tasks nil)
|
(setq org-export-with-tasks nil)
|
||||||
|
|
||||||
|
@ -111,6 +112,7 @@
|
||||||
|
|
||||||
;; Fix xdg-open & open PDF in Emacs - https://depp.brause.cc/dotemacs/#orgd97f08c
|
;; Fix xdg-open & open PDF in Emacs - https://depp.brause.cc/dotemacs/#orgd97f08c
|
||||||
(setq org-file-apps '((remote . emacs)
|
(setq org-file-apps '((remote . emacs)
|
||||||
|
("\\.pdf\\'" . default)
|
||||||
(auto-mode . emacs)
|
(auto-mode . emacs)
|
||||||
(directory . emacs)
|
(directory . emacs)
|
||||||
(system . "setsid -w xdg-open %s")
|
(system . "setsid -w xdg-open %s")
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
;;nix ; I hereby declare "nix geht mehr!"
|
;;nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;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
|
;;php ; perl's insecure younger brother
|
||||||
;;plantuml ; diagrams for confusing people more
|
;;plantuml ; diagrams for confusing people more
|
||||||
;;purescript ; javascript, but functional
|
;;purescript ; javascript, but functional
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
(package! annotate) ; Annotations
|
(package! annotate) ; Annotations
|
||||||
(package! visual-fill-column) ; Soft line wrapping at character count
|
(package! visual-fill-column) ; Soft line wrapping at character count
|
||||||
(package! togetherly) ; Collaborative editing
|
(package! togetherly) ; Collaborative editing
|
||||||
(package! ox-reveal) ; Presentations
|
;(package! ox-reveal) ; Presentations
|
||||||
|
|
||||||
(package! evil-args) ; motions in args
|
(package! evil-args) ; motions in args
|
||||||
(package! evil-replace-with-register) ; grrrrr
|
(package! evil-replace-with-register) ; grrrrr
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: org-superscript-reference
|
||||||
|
# key: ^
|
||||||
|
# --
|
||||||
|
^{[$0]}
|
Loading…
Reference in New Issue