summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-02-27 08:51:17 -0300
committerRoger Gonzalez <roger@rogs.me>2024-02-27 08:51:17 -0300
commit7378f6c1c7be92f1b2b7da5618cb60c4336ea7ef (patch)
tree0d670adba1128ac770d91d55551f208d07990b48
parent40eed46faea7024a5a71ac7628735bfe3f2500c5 (diff)
Added poetry mode and lazer configurations
-rw-r--r--.config/doom/config.el8
-rw-r--r--.config/doom/config.org8
-rw-r--r--.config/doom/packages.el1
3 files changed, 17 insertions, 0 deletions
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)