Update emacs.d/org-roam-templates/main.el
parent
fb3f41322b
commit
e88b540ca6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue