mirror of https://github.com/Chizi123/.emacs.d.git

Joel Grunbaum
2021-07-17 4b91a380ac03a646d41fcd6f6cc3e2aa9b616210
config.org
@@ -799,7 +799,7 @@
    (setq company-minimum-prefix-length 3))
#+END_SRC
** COMMENT LSP Mode
** LSP Mode
Use LSP for completion suggestions.
Causes too much memory usage, need to debug.
#+BEGIN_SRC emacs-lisp
@@ -818,9 +818,10 @@
    (setq lsp-keymap-prefix "C-c l")
    :commands lsp
    :config
    (add-hook lsp-mode-hook lsp-enable-which-key-integration)
    (add-hook 'lsp-mode-hook 'lsp-enable-which-key-integration)
    (setq read-process-output-max (* 1024 1024))
    (setq lsp-completion-provider :capf)
    (setq lsp-keep-workspace-alive 'nil)
    (add-to-list 'exec-path "~/.cargo/bin"))
  (use-package lsp-ui
@@ -987,7 +988,7 @@
                                     company-dabbrev-code
                                     company-irony)))
#+END_SRC
**** Clang-format
**** COMMENT Clang-format
Automatically format buffer on save.
#+BEGIN_SRC emacs-lisp
  (when (file-exists-p "/usr/share/clang/clang-format.el")