Browse Source

some lsp settings, recentf excludes some files

master
Marc 3 years ago
parent
commit
98c026115a
1 changed files with 22 additions and 8 deletions
  1. 30
      init.org

30
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_ORG_JOURNAL nil) ;; hacky way to prevent "free variable" compiler error
(defconst MY--PATH_START "p:/Eigene Dateien/Notizen/")) (defconst MY--PATH_START "p:/Eigene Dateien/Notizen/"))
(setq recentf-save-file (concat MY--PATH_USER_LOCAL "recentf")) (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 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 abbrev-file-name (concat MY--PATH_USER_GLOBAL "abbrev_defs"))
(setq backup-directory-alist `((".*" . ,temporary-file-directory))) (setq backup-directory-alist `((".*" . ,temporary-file-directory)))
@ -724,17 +731,24 @@ TODO Unterverzeichnisse wurden noch nicht getestet
(use-package lsp-mode (use-package lsp-mode
:defer t :defer t
:commands lsp
:commands (lsp lsp-execute-code-action)
:custom :custom
(lsp-auto-guess-root nil) (lsp-auto-guess-root nil)
(lsp-prefer-flymake nil) ; use flycheck instead (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)) :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 (use-package lsp-ui
:after lsp-mode :after lsp-mode

Loading…
Cancel
Save