diff --git a/dotfiles/.emacs.d/config.org b/dotfiles/.emacs.d/config.org index 0e1095a..e8e4004 100644 --- a/dotfiles/.emacs.d/config.org +++ b/dotfiles/.emacs.d/config.org @@ -28,6 +28,16 @@ Disables the dialog prompting box and instead prompts the user in the minibuffer (setq use-dialog-box nil) #+end_src +** Global Auto Revert + +Enabling global auto revert in Emacs so that changes across a shared file system are synced with emacs buffers. + +#+begin_src emacs-lisp +(global-auto-revert-mode 1) +(setq auto-revert-use-notify nil) +(setq auto-revert-verbose 1) +#+end_src + ** Relocate Custom File Change location of custom file. This will stop *custom* from appending to the config file. diff --git a/dotfiles/.emacs.d/functions.org b/dotfiles/.emacs.d/functions.org index a41d290..36be9f7 100644 --- a/dotfiles/.emacs.d/functions.org +++ b/dotfiles/.emacs.d/functions.org @@ -6,6 +6,8 @@ Creates a function to refresh the ~org-agenda-files~ variable to be set to inclu #+begin_src emacs-lisp (defun jm/org-roam-refresh-agenda-list () + (interactive) + (org-roam-db-sync) (let ((directory (expand-file-name org-roam-dailies-directory org-roam-directory))) (setq org-agenda-files (seq-filter diff --git a/dotfiles/.emacs.d/org.org b/dotfiles/.emacs.d/org.org index a509085..863415f 100644 --- a/dotfiles/.emacs.d/org.org +++ b/dotfiles/.emacs.d/org.org @@ -175,7 +175,8 @@ Org-roam is a plain-text knowledge management system. It brings some of Roam's m ("C-c n i" . org-roam-node-insert) ("C-c n c" . org-roam-capture) ("C-c n o" . org-id-get-create) - ("C-c n t" . jm/org-roam-capture-today)) + ("C-c n t" . jm/org-roam-capture-today) + ("C-c n r" . jm/org-roam-refresh-agenda-list)) :config ;; Config for org-roam capture templates. (setq jm/org-roam-templates-directory (expand-file-name "templates" org-roam-directory) diff --git a/home/modules/apps.nix b/home/modules/apps.nix index 4b0c1cb..99a3a02 100644 --- a/home/modules/apps.nix +++ b/home/modules/apps.nix @@ -5,5 +5,6 @@ discord shotcut libreoffice + bitwarden-desktop ]; }