   :config
   (recentf-mode 1)
   (setq recentf-max-menu-items 32
-        recentf-max-saved-items 32)
+	recentf-max-saved-items 32)
   :bind ("C-x C-r" . recentf-open-files))
 
 (use-package lsp-ui

  ;;; printf -v ARGS "%q " "$@"
  ;;; exec ssh notmuch notmuch ${ARGS}
  (setq notmuch-saved-searches
        '((:key "i" :name "inbox" :query "tag:inbox")
          (:key "u" :name "unread" :query "tag:unread")
          (:key "g" :name "github/mentions" :query "tag:github/mentions is:unread")
          (:key "b" :name "bugs" :query "tag:bugs date:today")
          (:key "T" :name "today" :query "date:today and not tag:trash")
          (:key "U" :name "unread today" :query "date:today is:unread")
          (:key "F" :name "flagged" :query "tag:flagged")
          (:key "S" :name "sent" :query "tag:Sent Mail"))))

(use-package langtool
  :config
  (setq langtool-http-server-host "localhost"
        langtool-http-server-port 8081
        langtool-default-language "en-GB")
  :commands (langtool-correct-buffer)
  :bind
  (:map git-commit-mode-map
        ("C-x `" . langtool-correct-buffer)))

(use-package company
  :diminish
  :commands (company-select-next-or-abort
             company-select-previous-or-abort)
  :custom ((company-idle-delay 0)
           (company-tooltip-limit 20)
           (company-minimum-prefix-length 3)
           (company-echo-delay 0)
           (company-require-match nil)
           (company-tooltip-align-annotations t) ; Align annotation to the right side.
           (company-auto-complete nil))
  :bind (:map company-active-map
              ("C-n" . company-select-next-or-abort)
              ("C-p" . company-select-previous-or-abort))
  :hook (after-init . global-company-mode))

(use-package flycheck)

(toggle-truncate-lines)

(add-hook 'prog-mode-hook
	  (lambda ()
	    (setq show-trailing-whitespace t)))

(defun aim/run-go-buffer ()
  "Run current buffer using go run."
