added deft, and org roam features
This commit is contained in:
@@ -80,7 +80,8 @@
|
|||||||
(defun rymacs/org-mode-setup ()
|
(defun rymacs/org-mode-setup ()
|
||||||
(org-indent-mode)
|
(org-indent-mode)
|
||||||
(variable-pitch-mode 1)
|
(variable-pitch-mode 1)
|
||||||
(visual-line-mode 1))
|
(visual-line-mode 1)
|
||||||
|
(setq org-startup-folded t))
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:commands (org-capture org-agenda)
|
:commands (org-capture org-agenda)
|
||||||
@@ -95,7 +96,8 @@
|
|||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
'("~/org/planner"
|
'("~/org/planner"
|
||||||
"~/org/projects"
|
"~/org/projects"
|
||||||
"~/org/archive"))
|
"~/org/archive"
|
||||||
|
"~/org/notes"))
|
||||||
|
|
||||||
(require 'org-habit)
|
(require 'org-habit)
|
||||||
(add-to-list 'org-modules 'org-habit)
|
(add-to-list 'org-modules 'org-habit)
|
||||||
@@ -210,9 +212,20 @@
|
|||||||
:custom
|
:custom
|
||||||
(org-roam-directory "~/roam")
|
(org-roam-directory "~/roam")
|
||||||
(org-roam-completion-everywhere t)
|
(org-roam-completion-everywhere t)
|
||||||
|
(org-roam-capture-templates
|
||||||
|
'(("d" "default" plain
|
||||||
|
"%?"
|
||||||
|
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||||
|
:unnarrowed t)
|
||||||
|
("r" "def+resources" plain
|
||||||
|
(file "~/roam/templates/resource-template.org")
|
||||||
|
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||||
|
:unnarrowed t)))
|
||||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||||
("C-c n f" . org-roam-node-find)
|
("C-c n f" . org-roam-node-find)
|
||||||
("C-c n i" . org-roam-node-insert)
|
("C-c n i" . org-roam-node-insert)
|
||||||
|
("C-c n I" . org-roam-node-insert-immediate)
|
||||||
|
("C-c n p" . my/org-roam-find-project)
|
||||||
:map org-mode-map
|
:map org-mode-map
|
||||||
("C-M-i" . completion-at-point)
|
("C-M-i" . completion-at-point)
|
||||||
:map org-roam-dailies-map
|
:map org-roam-dailies-map
|
||||||
@@ -223,3 +236,20 @@
|
|||||||
:config
|
:config
|
||||||
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
||||||
(org-roam-db-autosync-mode))
|
(org-roam-db-autosync-mode))
|
||||||
|
|
||||||
|
(defun org-roam-node-insert-immediate (arg &rest args)
|
||||||
|
(interactive "P")
|
||||||
|
(let ((args (cons arg args))
|
||||||
|
(org-roam-capture-templates (list (append (car org-roam-capture-templates)
|
||||||
|
'(:immediate-finish t)))))
|
||||||
|
(apply #'org-roam-node-insert args)))
|
||||||
|
|
||||||
|
(use-package deft
|
||||||
|
:after org
|
||||||
|
:bind
|
||||||
|
("C-c n d" . deft)
|
||||||
|
:custom
|
||||||
|
(deft-recursive t)
|
||||||
|
(deft-use-filter-string-for-filename t)
|
||||||
|
(deft-default-extension "org")
|
||||||
|
(deft-directory org-roam-directory))
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
(package! org-pomodoro)
|
(package! org-pomodoro)
|
||||||
(package! visual-fill-column)
|
(package! visual-fill-column)
|
||||||
(package! org-roam)
|
(package! org-roam)
|
||||||
|
(package! deft)
|
||||||
|
|
||||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
;(package! some-package)
|
;(package! some-package)
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"restore.stream.Output/Audio.application.name:Firefox": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
"restore.stream.Output/Audio.application.name:Firefox": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
||||||
"restore.stream.Output/Audio.media.role:Notification": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" },
|
"restore.stream.Output/Audio.media.role:Notification": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
||||||
"restore.stream.Output/Audio.application.name:eSpeak": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ] },
|
"restore.stream.Output/Audio.application.name:eSpeak": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ] },
|
||||||
"restore.stream.Output/Audio.application.name:speech-dispatcher-espeak-ng": { "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" },
|
"restore.stream.Output/Audio.application.name:speech-dispatcher-espeak-ng": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] },
|
||||||
"restore.stream.Output/Audio.application.name:speech-dispatcher-dummy": { "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" },
|
"restore.stream.Output/Audio.application.name:speech-dispatcher-dummy": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] },
|
||||||
"restore.stream.Output/Audio.application.name:Tor Browser": { "mute": false, "volumes": [ 0.000000, 0.000000 ], "channels": [ "FL", "FR" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" },
|
"restore.stream.Output/Audio.application.name:Tor Browser": { "volume": 1.000000, "mute": false, "volumes": [ 0.000000, 0.000000 ], "channels": [ "FL", "FR" ] },
|
||||||
"restore.stream.Input/Audio.application.name:GNOME Settings": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
"restore.stream.Input/Audio.application.name:GNOME Settings": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] },
|
||||||
"restore.stream.Output/Audio.application.name:Chromium": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" },
|
"restore.stream.Output/Audio.application.name:VirtualBoxVM": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
||||||
"restore.stream.Output/Audio.media.role:Test": { "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ], "target-node": "bluez_output.00_1B_66_BD_13_AA.a2dp-sink" }
|
"restore.stream.Output/Audio.application.name:Chromium": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] },
|
||||||
|
"restore.stream.Output/Audio.application.name:WEBRTC VoiceEngine": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] }
|
||||||
}
|
}
|
||||||
40
Emacs.org
40
Emacs.org
@@ -135,7 +135,8 @@ Main Org/Agenda configuration.
|
|||||||
(defun rymacs/org-mode-setup ()
|
(defun rymacs/org-mode-setup ()
|
||||||
(org-indent-mode)
|
(org-indent-mode)
|
||||||
(variable-pitch-mode 1)
|
(variable-pitch-mode 1)
|
||||||
(visual-line-mode 1))
|
(visual-line-mode 1)
|
||||||
|
(setq org-startup-folded t))
|
||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:commands (org-capture org-agenda)
|
:commands (org-capture org-agenda)
|
||||||
@@ -150,7 +151,8 @@ Main Org/Agenda configuration.
|
|||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
'("~/org/planner"
|
'("~/org/planner"
|
||||||
"~/org/projects"
|
"~/org/projects"
|
||||||
"~/org/archive"))
|
"~/org/archive"
|
||||||
|
"~/org/notes"))
|
||||||
|
|
||||||
(require 'org-habit)
|
(require 'org-habit)
|
||||||
(add-to-list 'org-modules 'org-habit)
|
(add-to-list 'org-modules 'org-habit)
|
||||||
@@ -313,9 +315,20 @@ Since we don't want to have to manually use the org-babel-tangle function everyt
|
|||||||
:custom
|
:custom
|
||||||
(org-roam-directory "~/roam")
|
(org-roam-directory "~/roam")
|
||||||
(org-roam-completion-everywhere t)
|
(org-roam-completion-everywhere t)
|
||||||
|
(org-roam-capture-templates
|
||||||
|
'(("d" "default" plain
|
||||||
|
"%?"
|
||||||
|
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||||
|
:unnarrowed t)
|
||||||
|
("r" "def+resources" plain
|
||||||
|
(file "~/roam/templates/resource-template.org")
|
||||||
|
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||||
|
:unnarrowed t)))
|
||||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||||
("C-c n f" . org-roam-node-find)
|
("C-c n f" . org-roam-node-find)
|
||||||
("C-c n i" . org-roam-node-insert)
|
("C-c n i" . org-roam-node-insert)
|
||||||
|
("C-c n I" . org-roam-node-insert-immediate)
|
||||||
|
("C-c n p" . my/org-roam-find-project)
|
||||||
:map org-mode-map
|
:map org-mode-map
|
||||||
("C-M-i" . completion-at-point)
|
("C-M-i" . completion-at-point)
|
||||||
:map org-roam-dailies-map
|
:map org-roam-dailies-map
|
||||||
@@ -327,4 +340,27 @@ Since we don't want to have to manually use the org-babel-tangle function everyt
|
|||||||
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
(require 'org-roam-dailies) ;; Ensure the keymap is available
|
||||||
(org-roam-db-autosync-mode))
|
(org-roam-db-autosync-mode))
|
||||||
|
|
||||||
|
(defun org-roam-node-insert-immediate (arg &rest args)
|
||||||
|
(interactive "P")
|
||||||
|
(let ((args (cons arg args))
|
||||||
|
(org-roam-capture-templates (list (append (car org-roam-capture-templates)
|
||||||
|
'(:immediate-finish t)))))
|
||||||
|
(apply #'org-roam-node-insert args)))
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Deft Configuration
|
||||||
|
|
||||||
|
Deft is a package that helps browse and filter plain text files. I use it to search through org-roam notes.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package deft
|
||||||
|
:after org
|
||||||
|
:bind
|
||||||
|
("C-c n d" . deft)
|
||||||
|
:custom
|
||||||
|
(deft-recursive t)
|
||||||
|
(deft-use-filter-string-for-filename t)
|
||||||
|
(deft-default-extension "org")
|
||||||
|
(deft-directory org-roam-directory))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|||||||
Reference in New Issue
Block a user