aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes
diff options
context:
space:
mode:
authorRaul Benencia <rul@kalgan.cc>2021-08-05 11:18:54 -0700
committerRaul Benencia <rul@kalgan.cc>2021-08-05 11:18:54 -0700
commit878963e67c86d9a20a542f8efd4f1877de31d7e6 (patch)
treec381c0c45f2b6bf35647d36f718d3e6074a0888c /.emacs.local.d/modes
parent9ca5d1c9d50c2230882705b4689d65a8f59cb4f4 (diff)
org-roam, org-journal
Diffstat (limited to '.emacs.local.d/modes')
-rw-r--r--.emacs.local.d/modes/ivy.el1
-rw-r--r--.emacs.local.d/modes/org-journal.el11
-rw-r--r--.emacs.local.d/modes/org-roam.el2
-rw-r--r--.emacs.local.d/modes/org.el18
4 files changed, 22 insertions, 10 deletions
diff --git a/.emacs.local.d/modes/ivy.el b/.emacs.local.d/modes/ivy.el
index ca3623c..fcf69ca 100644
--- a/.emacs.local.d/modes/ivy.el
+++ b/.emacs.local.d/modes/ivy.el
@@ -21,7 +21,6 @@
("C-x C-f" . counsel-find-file)
("C-x C-r" . counsel-recentf) ; search for recently edited
("C-c g" . counsel-git) ; search for files in git repo
- ("C-c j" . counsel-git-grep) ; search for regexp in git repo
("C-c /" . counsel-ag) ; Use ag for regexp
("C-x l" . counsel-locate)
("C-x C-f" . counsel-find-file)
diff --git a/.emacs.local.d/modes/org-journal.el b/.emacs.local.d/modes/org-journal.el
new file mode 100644
index 0000000..d298f05
--- /dev/null
+++ b/.emacs.local.d/modes/org-journal.el
@@ -0,0 +1,11 @@
+(use-package org-journal
+ :ensure t
+ :defer t
+ :init
+ ;; Change default prefix key; needs to be set before loading org-journal
+ (setq org-journal-prefix-key "C-c j ")
+ :config
+ (setq org-journal-dir my-org-journal-dir
+ org-journal-file-format "%Y.org"
+ org-journal-file-type 'yearly
+ org-journal-date-format "%A, %d %B %Y"))
diff --git a/.emacs.local.d/modes/org-roam.el b/.emacs.local.d/modes/org-roam.el
index 31a20a5..dd19ad8 100644
--- a/.emacs.local.d/modes/org-roam.el
+++ b/.emacs.local.d/modes/org-roam.el
@@ -1,5 +1,7 @@
(use-package org-roam
:ensure t
+ :custom
+ (org-roam-directory my-org-roam-directory)
:init
(setq org-roam-v2-ack t)
:bind (("C-c n l" . org-roam-buffer-toggle)
diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el
index 809e288..e0e2e83 100644
--- a/.emacs.local.d/modes/org.el
+++ b/.emacs.local.d/modes/org.el
@@ -56,26 +56,26 @@
(setq org-log-reschedule (quote time))
;; CAPTURE ;;
-(setq org-default-notes-file org-refile-path)
+(setq org-default-notes-file my-org-refile-path)
;; I use C-c c to start capture mode
(global-set-key (kbd "C-c c") 'org-capture)
;; Capture templates for: TODO tasks, Notes, appointments, phone calls, meetings, and org-protocol
(setq org-capture-templates
- (quote (("t" "todo" entry (file org-refile-path)
+ (quote (("t" "todo" entry (file my-org-refile-path)
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
- ("r" "respond" entry (file org-refile-path)
+ ("r" "respond" entry (file my-org-refile-path)
"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
- ("n" "note" entry (file org-refile-path)
+ ("n" "note" entry (file my-org-refile-path)
"* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)
- ("w" "org-protocol" entry (file org-refile-path)
+ ("w" "org-protocol" entry (file my-org-refile-path)
"* TODO Review %c\n%U\n" :immediate-finish t)
- ("m" "Meeting" entry (file org-refile-path)
+ ("m" "Meeting" entry (file my-org-refile-path)
"* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t)
- ("p" "Phone call" entry (file org-refile-path)
+ ("p" "Phone call" entry (file my-org-refile-path)
"* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
- ("h" "Habit" entry (file org-refile-path)
+ ("h" "Habit" entry (file my-org-refile-path)
"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"))))
(add-hook 'org-capture-mode-hook 'delete-other-windows)
@@ -98,7 +98,7 @@
; Targets include this file and any file contributing to the agenda - up to 9 levels deep
(setq org-refile-targets (quote ((nil :maxlevel . 9)
- (org-agenda-files :maxlevel . 9))))
+ (my-org-agenda-files :maxlevel . 9))))
; Exclude DONE state tasks from refile targets
(defun bh/verify-refile-target ()
nihil fit ex nihilo