 
 ;; theme of choice
 (use-package modus-themes
-  :straight (when (< emacs-major-version 28))
+  :no-require t                         ; included in Emacs 28 but not as a library
   :hook (emacs-startup . (lambda () (t/load-theme 'modus-operandi)))
   :init
   (setq modus-themes-italic-constructs t


;; reminds user to keep good posture
(use-package posture
  :config
  (global-set-key (kbd "C-c t p") #'toggle-posture-reminder))

(add-hook 'emacs-startup-hook
          (lambda ()
            (setq file-name-handler-alist t/file-name-handler-alist)))

;;; init.el ends here


      (if begin
	  (string-trim (substring contents begin (match-end 0)) "#\\+[tT][iI][tT][lL][eE]: *" "[\n\t ]+")
	(deft-base-filename file))))
  (advice-add 'deft-parse-title :override #'cm/deft-parse-title)

  (setq deft-directory org-directory
        deft-default-extension "org"
        deft-recursive t
        deft-auto-save-interval 0)      ; disable auto-saving

  ;; ensure :PROPERTIES: and lowercase #+props are not shown in note summaries
  (setq deft-strip-summary-regexp "\\(^:.*:.*\\|[\n	]\\|^#\\+[[:alpha:]_]+:.*$\\)"))

