From 7378f6c1c7be92f1b2b7da5618cb60c4336ea7ef Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Tue, 27 Feb 2024 08:51:17 -0300 Subject: Added poetry mode and lazer configurations --- .config/doom/config.el | 8 ++++++++ .config/doom/config.org | 8 ++++++++ .config/doom/packages.el | 1 + 3 files changed, 17 insertions(+) diff --git a/.config/doom/config.el b/.config/doom/config.el index 4b332067..ecd058a6 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -75,9 +75,11 @@ ("p" "Create a daily plan") ("pP" "Daily plan private" plain (file+olp+datetree "~/org/plan-free.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) ("pX" "Daily plan X-Team" plain (file+olp+datetree "~/org/plan-xteam.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) + ("pL" "Daily plan Lazer" plain (file+olp+datetree "~/org/plan-lazer.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) ("j" "Journal entry") ("jP" "Journal entry private" entry (file+olp+datetree "~/org/journal-private.org") "** %U - %^{Heading}") ("jX" "Journal entry X-Team" entry (file+olp+datetree "~/org/journal-xteam.org") "** %U - %^{Heading}") + ("jX" "Journal entry Lazer" entry (file+olp+datetree "~/org/journal-lazer.org") "** %U - %^{Heading}") ))) ;; Custom agenda views (setq org-agenda-custom-commands @@ -185,6 +187,10 @@ (interactive) (setq org-agenda-files '("~/org/xteam.org")) (message "Focusing on X-Team Org files")) + (defun org-focus-lazer() "Set focus on Lazer things." + (interactive) + (setq org-agenda-files '("~/org/lazer.org")) + (message "Focusing on Lazer Org files")) (defun org-focus-all() "Set focus on all things." (interactive) (setq org-agenda-files '("~/org/")) @@ -254,6 +260,7 @@ text and copying to the killring." (after! python :init (add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv) + (add-hook 'python-mode-hook #'poetry-tracking-mode) (setq enable-local-variables :all)) (after! groovy-mode @@ -330,6 +337,7 @@ text and copying to the killring." :desc "HTTP Status cheatsheet" "h" #'helm-httpstatus) (:prefix-map ("ao" . "org") :desc "Org focus X-Team" "x" #'org-focus-xteam + :desc "Org focus Lazer" "l" #'org-focus-lazer :desc "Org focus private" "p" #'org-focus-private :desc "Org focus all" "a" #'org-focus-all )) diff --git a/.config/doom/config.org b/.config/doom/config.org index 8a478cea..032bc804 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -143,9 +143,11 @@ TODO: Breakup later ("p" "Create a daily plan") ("pP" "Daily plan private" plain (file+olp+datetree "~/org/plan-free.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) ("pX" "Daily plan X-Team" plain (file+olp+datetree "~/org/plan-xteam.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) + ("pL" "Daily plan Lazer" plain (file+olp+datetree "~/org/plan-lazer.org") (file "~/org/templates/dailyplan.org") :immediate-finish t :jump-to-captured t) ("j" "Journal entry") ("jP" "Journal entry private" entry (file+olp+datetree "~/org/journal-private.org") "** %U - %^{Heading}") ("jX" "Journal entry X-Team" entry (file+olp+datetree "~/org/journal-xteam.org") "** %U - %^{Heading}") + ("jX" "Journal entry Lazer" entry (file+olp+datetree "~/org/journal-lazer.org") "** %U - %^{Heading}") ))) ;; Custom agenda views (setq org-agenda-custom-commands @@ -253,6 +255,10 @@ TODO: Breakup later (interactive) (setq org-agenda-files '("~/org/xteam.org")) (message "Focusing on X-Team Org files")) + (defun org-focus-lazer() "Set focus on Lazer things." + (interactive) + (setq org-agenda-files '("~/org/lazer.org")) + (message "Focusing on Lazer Org files")) (defun org-focus-all() "Set focus on all things." (interactive) (setq org-agenda-files '("~/org/")) @@ -341,6 +347,7 @@ text and copying to the killring." (after! python :init (add-hook 'python-mode-hook 'auto-virtualenv-set-virtualenv) + (add-hook 'python-mode-hook #'poetry-tracking-mode) (setq enable-local-variables :all)) #+end_src ** Groovy @@ -492,6 +499,7 @@ This is a custom menu for my own functions :desc "HTTP Status cheatsheet" "h" #'helm-httpstatus) (:prefix-map ("ao" . "org") :desc "Org focus X-Team" "x" #'org-focus-xteam + :desc "Org focus Lazer" "l" #'org-focus-lazer :desc "Org focus private" "p" #'org-focus-private :desc "Org focus all" "a" #'org-focus-all )) diff --git a/.config/doom/packages.el b/.config/doom/packages.el index 8881c428..14a57bc6 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -73,3 +73,4 @@ (package! deferred) (package! ox-slack) (package! org-auto-tangle) +(package! poetry) -- cgit v1.2.3