   (deft-use-filename-as-title t)
   (deft-use-filter-string-for-filename t))
 
-;; Things I forget:
-;; - Use 'C-j' to use typed text verbatim
-;; - Use 'C-d' to open current directory in dired
 (use-package ido
   :init
-  (setq ido-enable-prefix nil
-        ido-enable-flex-matching t
-        ido-create-new-buffer 'always
-        ido-use-filename-at-point 'guess
-        ido-use-url-at-point nil
-        ido-auto-merge-work-directories-length -1
-        ido-max-prospects 10)
   (ido-mode t)
-  :config
-  (add-to-list 'ido-ignore-buffers "\\*tide-server*")
+  :custom
+  (ido-enable-prefix nil)
+  (ido-enable-flex-matching t)
+  (ido-create-new-buffer 'always)
+  (ido-use-filename-at-point 'guess)
+  (ido-use-url-at-point nil)
+  (ido-auto-merge-work-directories-length -1)
+  (ido-max-prospects 10)
+  :config
   (add-to-list 'ido-ignore-buffers "\\*ansi-term-1*")
   (add-to-list 'ido-ignore-buffers "\\*Deft*"))
 

    ("q" nil)))

(use-package olivetti
  :config
  (setq olivetti-hide-mode-line t))

(use-package flycheck
  :init (global-flycheck-mode)

 split-width-threshold 0)

(when (string= system-type "darwin")
  (setq dired-use-ls-dired nil)

  (defun pbcopy ()
    (interactive)
    (call-process-region (point) (mark) "pbcopy")
    (setq deactivate-mark t))

  (defun pbpaste ()
    (interactive)
    (call-process-region (point) (if mark-active (mark) (point)) "pbpaste" t t))

  (defun pbcut ()
    (interactive)
    (pbcopy)
    (delete-region (region-beginning) (region-end)))

  (global-set-key (kbd "C-c c") 'pbcopy)
  (global-set-key (kbd "C-c v") 'pbpaste)
  (global-set-key (kbd "C-c x") 'pbcut))

(setq-default fill-column 80)

