Updates to emacs config to fix file syncing issues

This commit is contained in:
Random936 2024-12-08 19:19:33 -08:00
parent d23b2454d4
commit cc9c369ef2
4 changed files with 15 additions and 1 deletions

View File

@ -28,6 +28,16 @@ Disables the dialog prompting box and instead prompts the user in the minibuffer
(setq use-dialog-box nil) (setq use-dialog-box nil)
#+end_src #+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 ** Relocate Custom File
Change location of custom file. This will stop *custom* from appending to the config file. Change location of custom file. This will stop *custom* from appending to the config file.

View File

@ -6,6 +6,8 @@ Creates a function to refresh the ~org-agenda-files~ variable to be set to inclu
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun jm/org-roam-refresh-agenda-list () (defun jm/org-roam-refresh-agenda-list ()
(interactive)
(org-roam-db-sync)
(let ((directory (expand-file-name org-roam-dailies-directory org-roam-directory))) (let ((directory (expand-file-name org-roam-dailies-directory org-roam-directory)))
(setq org-agenda-files (setq org-agenda-files
(seq-filter (seq-filter

View File

@ -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 i" . org-roam-node-insert)
("C-c n c" . org-roam-capture) ("C-c n c" . org-roam-capture)
("C-c n o" . org-id-get-create) ("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
;; Config for org-roam capture templates. ;; Config for org-roam capture templates.
(setq jm/org-roam-templates-directory (expand-file-name "templates" org-roam-directory) (setq jm/org-roam-templates-directory (expand-file-name "templates" org-roam-directory)

View File

@ -5,5 +5,6 @@
discord discord
shotcut shotcut
libreoffice libreoffice
bitwarden-desktop
]; ];
} }