From 697aeeaafcf20a651ce052085c1de3caf7f479ee Mon Sep 17 00:00:00 2001 From: david Date: Wed, 5 Jun 2024 09:47:28 -0400 Subject: [PATCH] Macos specific configs --- main.org | 43 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/main.org b/main.org index 746580f..cd0f73d 100644 --- a/main.org +++ b/main.org @@ -59,6 +59,14 @@ replacement for defining configs for different things. `(("." . ,(concat user-emacs-directory "backups"))))) #+end_src +* MacOS Specific + +#+begin_src elisp :tangle yes + (when (eq system-type 'darwin) + (setq mac-option-modifier 'meta) + ) +#+end_src + * Visual Customization #+begin_src elisp :tangle yes @@ -275,7 +283,8 @@ Who even needs C++, not me, no way, no how. #+end_src ** Rust #+begin_src elisp :tangle yes - (leaf rust-mode :ensure t) + (leaf rust-mode :ensure t + (leaf slint-mode :ensure t)) #+end_src ** Minecraft?? Minecraft =mcfunction= support, because, it can be annoying to type @@ -316,11 +325,20 @@ updating our bibliography. (leaf pdf-tools :ensure t) :config (setq bibtex-completion-bibliography - (list (expand-file-name "~/Documents/Bibliography/references.bib"))) + (list (expand-file-name "~/Nextcloud/Bibliography/references.bib"))) + + (setq org-ref-bibliography-notes "~/Nextcloud/Bibliography/notes.org" + org-ref-default-bibliography '("~/Nextcloud/Bibliography/references.bib") + org-ref-pdf-directory "~/Nextcloud/Bibliography/bibtex-pdfs/") + (when (eq system-type 'darwin) + (setq bibtex-completion-bibliography + (list (expand-file-name "~/Nextcloud/Bibliography/references.bib"))) + + (setq org-ref-bibliography-notes "~/Nextcloud/Bibliography/notes.org" + org-ref-default-bibliography '("~/Nextcloud/Bibliography/references.bib") + org-ref-pdf-directory "~/Nextcloud/Bibliography/bibtex-pdfs/") + ) - (setq org-ref-bibliography-notes "~/Documents/Bibliography/notes.org" - org-ref-default-bibliography '("~/Documents/Bibliography/references.bib") - org-ref-pdf-directory "~/Documents/Bibliography/bibtex-pdfs/") (setq org-ref-insert-link-function 'org-ref-insert-link-hydra/body org-ref-insert-cite-function 'org-ref-cite-insert-helm @@ -341,6 +359,10 @@ Writing mockup presentations can be quicker when you focus on the text of the presentation first, and prettifying later. Reveal.js is a nice in between of these. +TODO: I need to ensure [[https://gitlab.com/oer/emacs-reveal.git][emacs-reveal]] is installed properly via both nix +& the git clone. Could use a submodule? Maybe. I don't know if that +will work + #+begin_src elisp :tangle yes (leaf ox-reveal :ensure t :require t @@ -422,7 +444,10 @@ collation of all the dates and todos etc. (leaf org-agenda-file :after org :config - (setq org-agenda-files '("~/Documents/org"))) + (setq org-agenda-files '("~/Nextcloud/org"))) + (when (eq system-type 'darwin) + (setq org-agenda-files '("~/Nextcloud/org")) + ) #+end_src **** Capture Things @@ -438,7 +463,11 @@ told to go elsewhere. (leaf org-capture-cfg :after org :config - (setq org-directory "~/Documents/org") + (setq org-directory "~/Nextcloud/org") + (when (eq system-type 'darwin) + (setq org-directory '("~/Nextcloud/org")) + ) + (setq org-default-notes-file (concat org-directory "/notes.org"))) #+end_src