 ;; (electric-indent-mode 1)
 
 (auto-compression-mode)
+
+;; The buffer *Flymake log* tends to fill up with things like:
+;; > Warning [flymake init.el]: Disabling backend flymake-proc-legacy-flymake
+;; > because (error Can’t find a suitable init function)
+(remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)
+

      lsp-ui-peek-enable nil
      lsp-ui-sideline-enable nil
      lsp-ui-imenu-enable nil
      lsp-ui-flycheck-enable t)

(use-package dumb-jump
  :bind (("M-g o" . dumb-jump-go-other-window)


;; (add-hook 'auto-save-hook 'aim/desktop-save)

(use-package recentf
  :config
  (progn
    (setq recentf-auto-cleanup 'never
	  recentf-max-saved-items 100)
    (recentf-mode 1)))

(add-to-list 'recentf-exclude
	     (expand-file-name "~/.emacs.d/elpa"))

(defun uniquify-all-lines-region (start end)
  "Find duplicate lines in region START to END keeping first occurrence."
