   :diminish smartparens-mode)
 
 (use-package flx)
+
+;;(use-package flycheck
+;;  :init
+;;  (global-flycheck-mode))
 
 ;; (use-package counsel
 ;;   :config


;; (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."


(use-package lsp-mode
  :commands (lsp lsp-deferred)
  :hook ((before-save . lsp-format-buffer)
         (before-save . lsp-organize-imports))
  :bind (("C-c d" . lsp-describe-thing-at-point)
	 ("C-c e n" . flymake-goto-next-error)
	 ("C-c e p" . flymake-goto-prev-error)
