     (term-send-string
      proc
      (concat "cd ~/Downloads && youtube-dl " url "\n"))))
+
+;; Try to guess the target directory for operations.
+(setq dired-dwim-target t)
 
 (defun ar/view-clipboard-buffer ()
   "View clipboard buffer."


(add-hook 'after-init-hook #'global-flycheck-mode)

(setq org-src-tab-acts-natively t)

;; Prevent inadvertently editing invisible areas in Org.
(setq org-catch-invisible-edits 'error)

;; All Org leading stars become invisible.
(setq org-hide-leading-stars t)


(use-package flyspell :commands (flyspell-mode-on))

(use-package fill-column-indicator :ensure t
  :commands (turn-on-fci-mode)

;; I prefer sentences to end with one space instead.
(setq sentence-end-double-space nil)

(defun ar/org-mode-hook-function ()
  "Called when entering org mode."
  (add-hook 'after-change-functions
