diff --git a/emacs.d/org-roam-templates/main.el b/emacs.d/org-roam-templates/main.el index 3cd2296..49e1dc7 100644 --- a/emacs.d/org-roam-templates/main.el +++ b/emacs.d/org-roam-templates/main.el @@ -1,19 +1,17 @@ ;; -*- mode: emacs-lisp; buffer-read-only: t; -*- - -(require 'org-roam) ;; bug fix, org-roam doesn't load properly, so we have to call it. +(require 'org-roam) (setq org-roam-directory "/mnt/Data/Documents/org-files/org-roam") ;; be paranoid, only open org files in read-only mode. ;; -(defun myorg-open-read-only-mode () - "Enable `read-only-mode' for Org mode files." - (when (and buffer-file-name - (string-match "\\.org\\'" buffer-file-name)) - (read-only-mode 1))) - -(add-hook 'org-mode-hook 'myorg-open-read-only-mode) +;;(defun myorg-open-read-only-mode () +;; "Enable `read-only-mode' for Org mode files." +;; (when (and buffer-file-name +;; (string-match "\\.org\\'" buffer-file-name)) +;; (read-only-mode 1))) +;;(add-hook 'org-mode-hook 'myorg-open-read-only-mode) ;;;; add inactive timestamp to every org-item