From 98c026115a83174bc8924e9fb9bd4f7d2dc8051f Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 12 Oct 2020 08:02:55 +0200 Subject: [PATCH] some lsp settings, recentf excludes some files --- init.org | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/init.org b/init.org index be92c96..fcd758d 100644 --- a/init.org +++ b/init.org @@ -147,7 +147,14 @@ Maybe turn it on again at some point before the next major emacs upgrade (defconst MY--PATH_ORG_JOURNAL nil) ;; hacky way to prevent "free variable" compiler error (defconst MY--PATH_START "p:/Eigene Dateien/Notizen/")) (setq recentf-save-file (concat MY--PATH_USER_LOCAL "recentf")) -(add-to-list 'recentf-exclude "\\elpa") ;; don't spam recentf with downloaded packages + +;; exclude some dirs from spamming recentf +(use-package recentf + :config + (recentf-mode) + (setq recentf-exclude '(".*-autoloads\\.el\\" + "[/\\]\\.elpa/"))) + (setq custom-file (concat MY--PATH_USER_LOCAL "custom.el")) ;; don't spam init.e with saved customization settings (setq abbrev-file-name (concat MY--PATH_USER_GLOBAL "abbrev_defs")) (setq backup-directory-alist `((".*" . ,temporary-file-directory))) @@ -724,17 +731,24 @@ TODO Unterverzeichnisse wurden noch nicht getestet (use-package lsp-mode :defer t - :commands lsp + :commands (lsp lsp-execute-code-action) :custom (lsp-auto-guess-root nil) (lsp-prefer-flymake nil) ; use flycheck instead - (lsp-file-watch-threshold 2000) + (lsp-file-watch-threshold 5000) + (lsb-print-performance t) + (lsp-log-io t) + (lsp-diagnostics-modeline-scope :project) + (lsp-enable-file-watchers nil) :bind (:map lsp-mode-map ("C-c C-f" . lsp-format-buffer)) - :hook ((python-mode - js-mode - js2-mode - typescript-mode - web-mode) . lsp)) + :hook + (((python-mode + js-mode + js2-mode + typescript-mode + web-mode) . lsp) + (lsp-mode . lsp-enable-which-key-integration) + (lsp-mode . lsp-diagnostics-modeline-mode))) (use-package lsp-ui :after lsp-mode