summaryrefslogtreecommitdiff
path: root/lisp/cpp.el
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2022-09-05 13:09:22 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2022-09-05 13:09:22 -0400
commitad7f668eda2b496f8579ce388fa45dac3b482489 (patch)
tree6cc45d136e93d7fbd1a27f68ee350e56b2020d6b /lisp/cpp.el
parent6257322d751dc36eaaf509682da164f6aef3ff90 (diff)
Some general improvements for web mode, need to test them out on a real project though
Diffstat (limited to 'lisp/cpp.el')
-rw-r--r--lisp/cpp.el22
1 files changed, 2 insertions, 20 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el
index 3565a16..1fdbb7c 100644
--- a/lisp/cpp.el
+++ b/lisp/cpp.el
@@ -12,30 +12,12 @@
;; (electric-indent-mode 0)
)
-;; Irony mode.
-(use-package irony
- :ensure t
- :defer t
- :init
- (add-hook 'c++-mode-hook 'irony-mode)
- (add-hook 'c-mode-hook 'irony-mode)
- (add-hook 'objc-mode-hook 'irony-mode)
- :config
- ;; replace the `completion-at-point' and `complete-symbol' bindings in
- ;; irony-mode's buffers by irony-mode's function
- (defun my-irony-mode-hook ()
- (define-key irony-mode-map [remap completion-at-point]
- 'irony-completion-at-point-async)
- (define-key irony-mode-map [remap complete-symbol]
- 'irony-completion-at-point-async))
- (add-hook 'irony-mode-hook 'my-irony-mode-hook)
- (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
- )
-
(require 'cmake-ide)
+(require 'eglot)
(cmake-ide-setup)
(add-hook 'c-mode-common-hook 'setup-c)
+(add-hook 'c-mode-common-hook 'eglot-ensure)
(provide 'cpp)
;;; cpp.el ends here