From 2ff3f4c2698f23a2ef6d89f21d18883f5384388b Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 30 Apr 2023 09:24:21 +0300 Subject: emacs: enable global-company-mode --- org/emacs.org | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'org/emacs.org') diff --git a/org/emacs.org b/org/emacs.org index 84dd09d..acf7447 100755 --- a/org/emacs.org +++ b/org/emacs.org @@ -593,28 +593,30 @@ Hook with ~dired-mode~ * Programming ** Essentials #+begin_src emacs-lisp -(electric-pair-mode 1) -(global-flycheck-mode) - -(use-package company - :after lsp-mode - :hook (lsp-mode . company-mode) - :bind (:map company-active-map - ("" . company-complete-selection)) - (:map lsp-mode-map - ("" . company-indent-or-complete-common)) - :custom - (company-minimum-prefix-length 1) - (company-idle-delay 0.0)) + (electric-pair-mode 1) + (global-flycheck-mode) + + (use-package company + :after lsp-mode + :hook (lsp-mode . company-mode) + :bind (:map company-active-map + ("" . company-complete-selection)) + (:map lsp-mode-map + ("" . company-indent-or-complete-common)) + :custom + (company-minimum-prefix-length 1) + (company-idle-delay 0.0) + :config + (setq global-company-mode t)) -(use-package dap-mode - :custom - (lsp-enable-dap-auto-configure nil) - :config - (dap-ui-mode 1)) + (use-package dap-mode + :custom + (lsp-enable-dap-auto-configure nil) + :config + (dap-ui-mode 1)) -(use-package company-box - :hook (company-mode . company-box-mode)) + (use-package company-box + :hook (company-mode . company-box-mode)) #+end_src *** Magit #+begin_src emacs-lisp -- cgit v1.2.3