 (add-hook 'org-mode-hook 'turn-on-auto-fill)
 (add-hook 'org-mode-hook (lambda ()
 			   (setq-local show-trailing-whitespace t)))
-
-;; TODO: See which I want to keep…
-(setq org-hide-emphasis-markers t
-      org-pretty-entites t
-      org-auto-align-tags nil
-      org-tags-column 0
-      org-ellipses "…"
-      org-catch-invisible-edits 'show-and-error
-      org-special-ctrl-a/e nil
-      org-insert-heading-respect-content t)
 
 (define-key global-map (kbd "C-c c") 'org-capture)
 (define-key global-map (kbd "C-c a") 'org-agenda)
 (define-key global-map (kbd "C-c l") 'org-store-link)
 (define-key global-map (kbd "C-c p") 'org-pomodoro)
 
-(setq org-log-done t)
+(setq org-pretty-entities t)
+(setq org-hide-emphasis-markers t)
 
 (setq-default buffer-file-coding-system 'utf-8-unix)
 


(setq org-refile-targets '(("~/memex/plan.org" :maxlevel . 3)
			   ("~/memex/someday.org" :level . 1)
			   ("~/memex/tickker.org" :maxlevel . 2)))

(setq org-todo-keywords
      '((sequence "TODO(t)" "WAITING(w)" "|" "DONE(d)" "CANCELLED(c)")))

;; ---------- Org-roam ----------

(use-package org-roam
  :init
  (setq org-roam-v2-ack t)
  :custom
  (org-roam-directory "~/memex/roam")
  :bind
  (("C-c n l" . org-roam-buffer-toggle)
   ("C-c n f" . org-roam-node-find)
   ("C-c n i" . org-roam-node-insert))
  :config
  (org-roam-setup))

;;; Emacs server

(server-start)
(require 'org-protocol)

;; (use-package rg
;;  :config
;;  (rg-enable-default-bindings))

(setq org-enforce-todo-dependencies t)

(setq-default indent-tabs-node nil)



;;; ---------- Completion ----------

;; (icomplete-mode)

(require 'vertico)
(vertico-mode)

;;; ---------- Modus theme ----------

(load-theme 'modus-operandi)
(define-key global-map (kbd "<f5>") #'modus-themes-toggle)

