 ;;; auto tail log files
 (add-to-list 'auto-mode-alist '("\\.log\\'" . auto-revert-mode))
 
+
+;;; fine tuning
+;;; gotten from https://emacs-lsp.github.io/lsp-mode/page/performance/
+(setq gc-cons-threshold 100000000)
+(setq read-process-output-max (* 1024 1024)) ;; 1mb
+
+
 ;;; init.el ends here
 (custom-set-variables
  ;; custom-set-variables was added by Custom.

  :hook (typescript-mode . prettier-js-mode))

;; Language Server Protocol
(use-package eglot
  :ensure t)
;; eglot temporary fix
(defun project-root (project)
  (car (project-roots project)))
(add-hook 'go-mode-hook 'eglot-ensure)


;;; Text Editing visual

;; Configs that must be set before loading evil mode.
(setq evil-lookup-func #'ab/help-symbol-lookup)
(setq evil-toggle-key "C-z")
(setq evil-want-C-i-jump nil)

;; change model texts
(setq evil-normal-state-tag "<NORMAL>")
