Eglot and elpy fixes.

master
Rostyslav Hnatyshyn 3 years ago
parent 57f8848b4e
commit 0bd3a93a3d
  1. 8
      emacs
  2. 7
      emacs_home.el

@ -59,6 +59,7 @@ Return a list of installed packages or nil for every skipped package."
(use-package eglot :ensure t)
(add-hook 'c++-mode-hook 'eglot-ensure)
(add-hook 'c-mode-hook 'eglot-ensure)
(add-hook 'js-mode-hook 'eglot-ensure)
(use-package centaur-tabs :init
(setq centaur-tabs-enable-key-bindings t
@ -104,7 +105,10 @@ Return a list of installed packages or nil for every skipped package."
:ensure t
:defer t
:init
(advice-add 'python-mode :before 'elpy-enable))
(advice-add 'python-mode :before 'elpy-enable)
:config
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
(use-package ivy :ensure t
:diminish ivy-mode
@ -140,7 +144,6 @@ Return a list of installed packages or nil for every skipped package."
(("C-s" . swiper)))
(setq search-default-mode #'char-fold-to-regexp)
(use-package projectile
:ensure t
:init
@ -163,6 +166,7 @@ Return a list of installed packages or nil for every skipped package."
(setq org-agenda-skip-deadline-if-done t)
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
(cond ((file-exists-p "~/.emacs_work.el") (load "~/.emacs_work.el")))

@ -4,6 +4,13 @@
"~/Documents/home-org-mode/personal.org"))
(set-frame-font "Iosevka:size=16")
(ensure-package-installed 'rustic)
(use-package rustic)
(setq rustic-lsp-client 'eglot)
(add-to-list 'eglot-server-programs '((c++-mode c-mode) "clangd"))
(use-package all-the-icons)
(use-package org-roam

Loading…
Cancel
Save